GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: side chats as right panel tabs by cdxker · Pull Request #1 · cdxker/t3code

Conversation

@cdxker

@cdxker cdxker commented Oct 28, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

Adds t3code sidechats

image
clank context (clickme)

Description

Adds side chats: a fork of the current thread that opens as a right-panel tab, can be started with /side [prompt], and never shows up in thread lists.

  • New side-chat right-panel surface that embeds a full chat for the forked thread, opened from the + menu (S).
  • /side [prompt] composer command that forks from the latest finished response and optionally sends the prompt into the side chat.
  • lineage.sideChat flag set on side-chat forks; sidebar, settled shelf, command palette, @ thread search, and mobile lists skip flagged threads.

Test Plan

  • vp run check:changed (format, lint, knip, typecheck of 32 packages, 19 test files / 462 tests pass)
  • vp test run apps/server/src/orchestration-v2/ThreadForkService.test.ts ("marks only requested forks as side chats")
  • In the app: open a thread with a finished response, type /side say hi. A Side chat tab opens on the right and answers, the main thread is unchanged, and no new sidebar row appears.

Detail

  • First open of a side chat crashed with [tiptap error]: The editor view is not available. Cannot access view['dom']. The embedded ChatView was lazy() inside <Suspense>; revealing it ran React's disappear/reappear effect pass, tiptap's EditorContent tore down its view, and the composer's layout effect read the dead view. ChatView is always loaded by the route already, so it is now imported directly with no boundary.
  • The embedded chat sits under BackgroundThreadContext (global shortcuts stay with the parent) and a null ComposerHandleContext (it does not grab the parent's composer).
  • The marker lives in lineage rather than a new thread field: lineage is already copied verbatim into every shell, threads are stored as payload_json so no migration is needed, and all clients get it. A plain fork of a side chat is not a side chat.
  • Rejected: hiding side chats client-side from right-panel state. Other devices and mobile would still list them.
  • Side chats remain reachable from the thread details Lineage section and reopen-closed-tab.

Components

packages/contracts/src/orchestrationV2.ts

  • lineage.sideChat optional flag, sideChat on thread.fork, isListedThreadLineage helper.

apps/server/src/orchestration-v2/

  • ThreadForkService / Orchestrator set the flag on request; settled-shelf SQL skips flagged threads.

apps/web/src/components/chat/useSideChat.ts, RightPanelSurfaceContent.tsx, ChatView.tsx, rightPanelStore.ts, RightPanelTabs.tsx

  • Fork + open + optional first turn; side-chat surface kind, menu item, tab title/icon, reopen support; embedded ChatView mode.

apps/web/src/composer-logic.ts, chat/useComposerSend.ts, chat/useComposerMenuItems.ts, chat/ChatComposer.tsx

  • /side parsing, slash-menu item, send-path interception.

apps/web/src/components/Sidebar.logic.ts, CommandPalette.logic.ts, packages/client-runtime/src/, apps/mobile/src/

  • Thread lists filter through isListedThreadLineage.

Running this on T3 Code Nightly

The same three commits apply cleanly onto a nightly's commit. denzell/side-chats-nightly is them on top of v0.1.4-nightly.20261027.3783 (dc84b096).

Prerequisites

  • gh logged in; repo cloned with origin = cdxker/t3code, upstream = pingdotgg/t3code.
  • vp: curl -fsSL https://vite.plus | bash, then export PATH="$HOME/.local/share/vite-plus/bin:$PATH".
  • Rust 1.95+ for the resource monitor: rustup update stable (or pick an installed toolchain with RUSTUP_TOOLCHAIN).

1. Find the nightly you are running

VERSION=$(/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" "/Applications/T3 Code (Nightly).app/Contents/Info.plist")
gh release view "v$VERSION" -R pingdotgg/t3code --json targetCommitish --jq .targetCommitish

For the newest nightly instead: gh release list -R pingdotgg/t3code --limit 5.

2. Apply the side chat commits to that nightly

cd ~/work/pingdotgg/t3code
git fetch upstream --tags && git fetch origin
git checkout -b "denzell/side-chats-$VERSION" "v$VERSION"
git cherry-pick $(git log --reverse --format=%H upstream/main..origin/denzell/side-chats)

On conflict: fix, git add, git cherry-pick --continue.

3. Check it

vp i
vp run check:changed

If a browser test fails with Executable doesn't exist ... chrome-headless-shell, run cd apps/web && vp exec playwright install chromium-headless-shell once.

4. Build

Use the exact nightly version so the app keeps the "T3 Code (Nightly)" name, icon, bundle ID, and data folder.

RUSTUP_TOOLCHAIN=stable node scripts/build-desktop-artifact.ts \
  --platform mac --target dmg --arch arm64 \
  --build-version "$VERSION" \
  --output-dir /tmp/t3-nightly-patched

5. Install

If you run this from inside T3 Code, the last line restarts it for you.

rm -rf /tmp/t3-nightly-app && mkdir /tmp/t3-nightly-app
ditto -x -k /tmp/t3-nightly-patched/T3-Code-$VERSION-arm64.zip /tmp/t3-nightly-app

mkdir -p ~/Applications
BACKUP="$HOME/Applications/T3 Code (Nightly) original.app"
[ -e "$BACKUP" ] || mv "/Applications/T3 Code (Nightly).app" "$BACKUP"
rm -rf "/Applications/T3 Code (Nightly).app"
ditto "/tmp/t3-nightly-app/T3 Code (Nightly).app" "/Applications/T3 Code (Nightly).app"

nohup sh -c 'sleep 3; osascript -e "tell application id \"com.t3tools.t3code\" to quit"; sleep 8; open "/Applications/T3 Code (Nightly).app"' >/dev/null 2>&1 &

The backup only happens once, so later upgrades keep the original official app.

6. Confirm

codesign -dv "/Applications/T3 Code (Nightly).app" 2>&1 | grep Signature   # Signature=adhoc

Then type /side say hi in a thread with a finished response.

Things to know

  • Signing: the build is ad-hoc signed. macOS may ask about "T3 Code (Nightly) Safe Storage" once; click Always Allow.
  • Updates: the app still checks the official nightly feed. A new nightly either replaces the build (dropping side chats) or fails on the signature mismatch. Repeat steps 1–5 for each nightly you want.
  • Data: ~/.t3/userdata is shared by the official and patched builds.

Roll back

osascript -e 'tell application id "com.t3tools.t3code" to quit'
rm -rf "/Applications/T3 Code (Nightly).app"
mv "$HOME/Applications/T3 Code (Nightly) original.app" "/Applications/T3 Code (Nightly).app"
open "/Applications/T3 Code (Nightly).app"

Verification

  • vp run check:changed on denzell/side-chats and on denzell/side-chats-nightly: all pass (462 tests on the nightly base).
  • Browser repro of the first-open crash before the fix, no console errors after; /side reply with just the word pong answered in the side tab.
  • Patched nightly installed locally: running bundle is the ad-hoc build, and the first side chat created on it has lineage.sideChat = 1 in statev2.sqlite.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

faetschi and hideoneric reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
cdxker added 3 commits October 27, 2026 14:06
@cdxker
feat(web): open side chats as right panel tabs
f53e4fd
@cdxker
fix(web): side chats no longer crash on first open; add /side [prompt]
55a9433
@cdxker
fix: keep side chats out of thread lists
4381656
brandonmcconnell
brandonmcconnell approved these changes Oct 28, 2026
View reviewed changes
@t3dotgg t3dotgg mentioned this pull request Oct 29, 2026
feat: side chats beside the main thread pingdotgg/t3code#26901
Merged
t3dotgg added a commit to pingdotgg/t3code that referenced this pull request Oct 29, 2026
@t3dotgg @cdxker @claude
wip: side chat base from cdxker#1 plus sideChats capability
2a63e83
Co-Authored-By: cdxker <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
t3dotgg added a commit to pingdotgg/t3code that referenced this pull request Oct 29, 2026
@t3dotgg @cdxker @claude
wip: side chat base from cdxker#1 plus sideChats capability
4c9b259
Co-Authored-By: cdxker <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
t3dotgg added a commit to pingdotgg/t3code that referenced this pull request Oct 29, 2026
@t3dotgg @cdxker @claude
wip: side chat base from cdxker#1 plus sideChats capability
1b85ffe
Co-Authored-By: cdxker <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
t3dotgg added a commit to pingdotgg/t3code that referenced this pull request Oct 29, 2026
@t3dotgg @cdxker @claude
wip: side chat base from cdxker#1 plus sideChats capability
c605cfc
Co-Authored-By: cdxker <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mubeda mubeda mentioned this pull request Nov 2, 2026
Chat: open a side chat that starts with the thread's context and leaves the thread untouched mubeda/BibCode#265
Closed
19 tasks
@github-actions github-actions Bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@brandonmcconnell brandonmcconnell brandonmcconnell approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@cdxker @brandonmcconnell
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.