Repository navigation
Conversation
Keep the contributor independent-page implementation, but make it opt-in: the default is still one shared page with the session last/newest reattach, and Settings -> Side card -> Side chat can switch to one native page per thread. The descriptor gains a dynamic multiple predicate, native sync re-registers on a flip, and occurrence bindings are read/written only for sidebar://sidechat/<uuid> contentIds so the shared page can never be captured by an old binding.
|
Thanks @pennxiang! I rebased the contribution onto current I then added one maintainer commit (
Verification: full suite 303 files / 3,518 tests passed (17 skipped) on rc.2; typecheck, lint, build and consumer declarations pass; real-host Chromium mounts pass on both 0.2.2-rc.2 and 0.2.2-rc.3 (26 passed / 6 skipped each), including the repeated-shared-open and three-independent-thread reload cases. Merged into |
Why
Side Chat intends one tab per conversation, but the native sidebar currently behaves as a singleton:
The descriptor factory's unique plugin id is not the host page identity. Without
multiple: true, the host usessidebar://sidechatand dedupes it even whenrevealIfOpened: false. Independently, the view's last/newest-thread fallback makes a fresh unbound tab reuse an old thread.Scope
contentId, never transcripts or drafts.Originally based on
devat09b83cc; now merged withdevat11e6c8e, including upstream's v0.30.0 / DSH 0.2.2-rc.1 adaptation. The image-input, GenUI and #949 archive-button guard remain intact. No DSH source changes, dependency changes, version bump, or unrelated terminal changes.Tradeoffs / lifecycle
reveal: falsedoes not steal focus, and a queued native open rechecks bottom ownership at actual placement.Upstream merge / conflict resolution — 2026-11-04
Merged
devat11e6c8ewithout rewriting the contribution branch. The only textual conflict was the changelog's unreleased section: retained the four Side Chat bullets, the upstream settings navigation icon entry, and the complete v0.30.0 release section. Source and test overlaps merged automatically; an independent read-only review found no lost upstream changes or blockers.Revalidated with upstream's DSH 0.2.2-rc.1 dependencies:
The first test run before recording the merge hit the history smoke test's expectation that HEAD has a non-empty diff: HEAD was the empty mergeability-refresh commit. After recording the actual merge, the unchanged test and full suite passed; no test was weakened or skipped to resolve it. Windows remains unverified locally.
Initial verification (before the upstream merge)
pnpm typecheck— pass.pnpm lint— pass (whole repository).pnpm buildandpnpm pack— pass.pnpm test --maxWorkers=2— 247 files passed; 3047 tests passed, 17 skipped, 0 failed on macOS/Node 22.pnpm check:consumer-types— pass.pnpm check:engines— pass for installed ripgrep; fd checks skipped because fd is not installed.bash scripts/e2e-mount.sh --grep 'sidechat multi-instance|plugin mounts into|bottom workbench opens|native tab types survive'.The browser multi-instance test runs real host registration, layout and plugin rendering, but stubs Side Chat transport: it proves independent bindings and reload behavior, not concurrent model execution. Windows is left to the repository's CI lane.
Design and compatibility notes