Skip to content

fix(chat): use the live thread view in the side panel - #2558

Merged
TheAnimatrix merged 2 commits into
masterfrom
fix-side-panel-thread-controls
Dec 1, 2026
Merged

TheAnimatrix merged 2 commits into
masterfrom
fix-side-panel-thread-controls

Conversation

@TheAnimatrix

@TheAnimatrix TheAnimatrix commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Threads opened beside a chat could miss streaming messages and pending approvals. The picker could show “Select model,” and a move to a different thread could carry over the previous panel.

Change

  • The main chat and side panels now mount the same live thread view, with the transcript, approvals, model picker, and send actions bound to the thread in each pane.
  • Both panes share the window’s transcript subscription and streaming text updates. The window keeps each shown thread’s stream open across reconnects.
  • Sending waits for a model pick to save. Switching threads or opening a blank composer closes the old panel. Returning to a thread restores that thread’s panel.

Verification

  • Tier 4. All 295 focused tests and both type checks passed on d25f13b10.
    • npx vitest run tests/renderer/sideChatsPanel.test.ts tests/renderer/sideChatsReplace.test.ts tests/renderer/liveStreamingText.test.ts tests/renderer/liveThinking.test.ts tests/renderer/liveThoughtFollow.test.ts tests/renderer/nonTextPushRenders.test.ts tests/backgroundSubagentIpcFilter.test.ts tests/appStoreWorkspace.test.ts tests/renderer/composerModelSwitch.test.ts tests/renderer/approvalNotice.test.ts tests/renderer/composerSteerSend.test.ts tests/guiMmsController.test.ts tests/guiWindowConnection.test.ts tests/guiRemoteFirstOpen.test.ts tests/providerSnapshotsRenderer.test.ts tests/renderer/questionsThreadScope.test.ts tests/permissionRequestsInline.test.ts tests/renderer/threadOpenApp.test.ts tests/renderer/chatsTabWorkspaceApp.test.ts tests/net/bridge/routed/routerStreams.test.ts tests/net/bridge/routed/routerCalls.test.ts
    • tsc --noEmit -p tsconfig.node.json
    • tsc --noEmit -p tsconfig.web.json
  • In offscreen Electron with a scripted bridge, the side thread displayed a streaming reply, accepted a pending approval, saved a different model, and closed when switching from a bot thread to another agent thread. Returning restored the original panel. Before and after captures use the same fixture.
  • The paired-service tests cover routed thread streaming, approvals, and model changes using two isolated test services.
Before After
Waiting approval and Select model in the side panel Approval actions and the effective model in the side panel

A streamed reply, accepted approval, and saved model in the side thread

Self-review

Area Score Evidence
Correctness 9/10 Both panes use one chat with thread-scoped commands and transcript state.
Regressions 9/10 Main-chat behavior, reconnects, and paired-service routing passed.
Tests 9/10 Tests observe a streamed delta, an approval click, a send held for a model save, and thread switches.
Code quality 9/10 Removed the separate side composer and streaming implementation.
Scope 9/10 Changes serve the shared thread view and the four reported failures.
App verification 9/10 All four behaviors were exercised in offscreen Electron with a scripted bridge.
PR text 9/10 Includes the observed behavior, exact checks, and screenshots.

Independent review found three problems in the first version. The shared chat applies the model it shows, sends after a pending pick saves, and clears the inherited panel when opening the blank composer.

No issue

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one): 1

  • ready

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 77b41676-ed2b-4eb0-9fe2-18b258b76878

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@TheAnimatrix
TheAnimatrix marked this pull request as ready for review December 1, 2026 19:43
@TheAnimatrix TheAnimatrix changed the title fix(chat): let side panels approve requests and switch models fix(chat): use the live thread view in the side panel Dec 1, 2026
@TheAnimatrix
TheAnimatrix merged commit 5409f3a into master Dec 1, 2026
18 of 19 checks passed
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