Skip to content

perf(ui): split right panel and secondary viewer chunks#1

Open
pascalandr wants to merge 1 commit intodevfrom
ready/ui-secondary-chunks
Open

perf(ui): split right panel and secondary viewer chunks#1
pascalandr wants to merge 1 commit intodevfrom
ready/ui-secondary-chunks

Conversation

@pascalandr
Copy link
Copy Markdown

@pascalandr pascalandr commented Mar 14, 2026

Summary

  • split the right panel, picker, and tool call secondary viewers into smaller deferred chunks
  • release hidden right-panel file buffers and stop tracking static tool-call scrollers when they are not needed
  • keep this branch focused on secondary viewer chunking now that the Monaco-specific chunking moved into PR 215

Testing

  • npm run build --workspace @codenomad/ui

Notes

  • This branch is now independent from PR 215 and targets dev directly.

@pascalandr pascalandr force-pushed the ready/ui-secondary-chunks branch 2 times, most recently from d52b4cc to e71f103 Compare March 17, 2026 07:44
@pascalandr pascalandr force-pushed the ready/ui-markdown-diff-perf branch from 16ee70f to f1696aa Compare March 18, 2026 19:57
@pascalandr pascalandr force-pushed the ready/ui-secondary-chunks branch from e71f103 to 1cabeca Compare March 18, 2026 19:57
@pascalandr pascalandr marked this pull request as ready for review March 18, 2026 19:58
@pascalandr
Copy link
Copy Markdown
Author

Restacked this on top of the rebuilt ready/ui-markdown-diff-perf branch and marked it ready for review.

The branch now only contains the secondary chunk and right panel follow-up changes on top of the refreshed base.

@pascalandr
Copy link
Copy Markdown
Author

Restacked this again on top of the rebuilt ready/ui-markdown-diff-perf branch.

This follow-up now sits on the refreshed 215 base and is ready for review.

@pascalandr pascalandr force-pushed the ready/ui-secondary-chunks branch from 1cabeca to 80bc741 Compare March 18, 2026 20:57
@pascalandr pascalandr changed the base branch from ready/ui-markdown-diff-perf to dev March 19, 2026 21:51
@pascalandr pascalandr force-pushed the ready/ui-secondary-chunks branch from 80bc741 to d707166 Compare March 19, 2026 21:51
@pascalandr
Copy link
Copy Markdown
Author

I reshuffled this branch so it no longer carries the Monaco-specific chunking.

That part now lives in PR 215. This branch is now focused on the remaining right panel, picker, and tool-call secondary chunking work, and it now targets dev directly instead of stacking on PR 215.

pascalandr pushed a commit that referenced this pull request Mar 22, 2026
…#235)

## What
Fix slash command execution so `[pasted #N]` placeholders are resolved
before calling `session.command`, matching normal prompt send behavior.

## Why
When pasting long text into a slash command (e.g. `/some-command [pasted
#1]`), the UI previously bypassed `resolvePastedPlaceholders(...)` for
known slash commands and sent the literal placeholder text as command
arguments.

## Changes
- Resolve pasted placeholders (and other prompt placeholders handled by
`resolvePastedPlaceholders`) in slash-command arguments before
`executeCustomCommand(...)`.
- Remove *consumed* pasted-text attachments (those referenced by
placeholders in the slash-command args) so they don’t linger for the
next prompt.

Fixes NeuralNomadsAI#234.

## Notes
- I attempted `npm run typecheck --workspace @codenomad/ui` locally but
the workspace dependencies aren’t installed in this bot environment, so
it fails with missing-module errors. CI should validate with a full
install.

--
Yours,
[CodeNomadBot](https://github.com/NeuralNomadsAI/CodeNomad)

Co-authored-by: Shantur Rathore <i@shantur.com>
shantur pushed a commit to NeuralNomadsAI/CodeNomad that referenced this pull request Mar 22, 2026
## Summary
- lazy-load the markdown and diff render paths so they stop inflating
initial UI startup work
- move shared text rendering helpers out of the markdown path and keep
diff rendering on the deferred path
- defer the Monaco secondary viewers so the markdown and diff path no
longer keeps that work in the main bundle

## Follow-ups
- related fork follow-up: Pagecran#1
- that follow-up is now independent on dev and only keeps the remaining
right panel, picker, and tool-call secondary chunking work

## Testing
- npm run typecheck --workspace @codenomad/ui
- npm run build --workspace @codenomad/ui
@pascalandr pascalandr force-pushed the dev branch 2 times, most recently from 577f30b to c9c1cf2 Compare April 10, 2026 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant