Skip to content

Git integration: branch picker + worktrees - #3

Merged
juliusmarminge merged 32 commits into
mainfrom
juliusmarminge/git-integration
Feb 11, 2026
Merged

juliusmarminge merged 32 commits into
mainfrom
juliusmarminge/git-integration

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Feb 9, 2026 •

Copy link
Copy Markdown
Member

Closes #7 (Does not implement multiple threads per worktree)

Summary

Users can now right-click on "+ New thread" to create threads from specific git branches, with optional worktree creation for isolated agent work.

Features

  • Branch context menu showing local branches sorted by current/default/alphabetical
  • Option to create git worktree for each branch before starting a thread
  • Graceful handling of non-git repositories with "Initialize git repo" button
  • Thread model extended with branch/worktreePath fields for persistence
  • Agent sessions use worktree path as cwd when available
  • Updated persistence schema to store branch and worktree info

Test Plan

  • Right-click "+ New thread" on a git-tracked project to see branch list
  • Select a branch to create thread with that branch in metadata
  • Click "worktree" button to create isolated worktree before starting thread
  • On non-git project, click to see "Not a git repository" with init option
  • Verify agent runs in worktree cwd when applicable
  • Verify branch/worktree badge displays in chat header

🤖 Generated with Claude Code


Open with Devin

Summary by CodeRabbit

  • New Features

    • Branch toolbar beneath chat input to choose branch and environment (Local vs Worktree); environment locks after the first message.
    • Branch picker auto-populates from the repository; toolbar hidden for non-git projects.
    • First message in Worktree mode can create a new worktree and associate it with the thread; branch/worktree badges appear in header and sidebar.
  • Tests

    • Extensive unit and integration tests for branch, worktree, checkout, and end-to-end git flows.

@coderabbitai

coderabbitai Bot commented Feb 9, 2026 •

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

Adds end-to-end Git integration: new contracts and WS API, server & desktop git utilities, renderer IPC and React Query wiring, per-thread branch/worktree state and persistence, BranchToolbar UI, ChatView worktree creation on first message, tests, and build/tooling/script updates.

Changes

Cohort / File(s) Summary
Contracts & WS API
packages/contracts/src/git.ts, packages/contracts/src/ipc.ts, packages/contracts/src/ws.ts, packages/contracts/src/index.ts
New zod schemas/types and result types for git operations; added WS method names; extended NativeApi.git with listBranches/createWorktree/removeWorktree/createBranch/checkout/init; re-exported git.
Server git module & WS handlers
apps/server/src/git.ts, apps/server/src/wsServer.ts, apps/server/src/git.test.ts, apps/server/src/wsServer.test.ts
Introduced server-side git utilities (runTerminalCommand, list/create/remove worktree, branch ops, init) and wired them into WS router; added FS-backed integration tests covering branches, worktrees, checkouts, and WS git RPCs.
Desktop git helpers & tests
apps/desktop/src/git.ts, apps/desktop/src/git.test.ts, apps/desktop/src/main.ts, apps/desktop/src/preload.ts
Extracted desktop git helpers into module; main imports module; preload exposes IPC for git operations; added desktop git tests.
Renderer native bridge
apps/web/src/wsNativeApi.ts, apps/desktop/src/preload.ts
Renderer-facing native API gains git.* methods that route to WS / preload IPC.
Frontend UI & flows
apps/web/src/components/BranchToolbar.tsx, apps/web/src/components/ChatView.tsx, apps/web/src/components/Sidebar.tsx, apps/web/src/App.tsx
Added BranchToolbar and integrated it into ChatView; ChatView manages envMode (local
State, types & persistence
apps/web/src/types.ts, apps/web/src/store.ts, apps/web/src/persistenceSchema.ts, apps/web/src/persistenceSchema.test.ts, apps/web/src/store.test.ts
Extended Thread with branch and worktreePath; added SET_THREAD_BRANCH action and reducer handling (clears session when worktreePath changes); persistence schema migrated to include nullable/optional fields; tests updated.
Web wiring & deps
apps/web/src/App.tsx, apps/web/package.json
Added @tanstack/react-query dependency, created QueryClient and wrapped app in QueryClientProvider; thread creation payload extended with new fields.
Tests & test plan
.plans/*, apps/desktop/src/git.test.ts, apps/server/src/git.test.ts, apps/web/src/git-flows.test.ts
Added integration/unit tests and a test plan for Git flows, worktrees, store reducer, and edge cases; factory helpers and comprehensive scenarios included.
Build/tooling & scripts
apps/*/tsdown.config.ts, removed tsup.config.ts, package.json, apps/*/package.json, *.turbo.jsonc, vitest.config.ts
Switched build tooling from tsup→tsdown, updated package scripts to turbo orchestration, adjusted outputs to .mjs/ESM, added turbo configs and vitest alias changes.
Misc UI/docs/formatting
README.md, AGENTS.md, various apps/web/*, apps/server/*, packages/contracts/*
Docs and plan files added/updated; assorted formatting and small non-functional refactors across CSS, tests, and TS files.

Sequence Diagram

sequenceDiagram
    participant User as User
    participant ChatView as ChatView (UI)
    participant BranchToolbar as BranchToolbar (UI)
    participant Store as Renderer Store
    participant NativeAPI as Native API (preload/WS)
    participant WebSocket as WebSocket Transport
    participant Server as Server (git module)

    User->>ChatView: open chat / branch controls
    ChatView->>BranchToolbar: render (envMode, envLocked)
    BranchToolbar->>NativeAPI: git.listBranches({ cwd })
    NativeAPI->>WebSocket: invoke "git:list-branches"
    WebSocket->>Server: WS_METHODS.gitListBranches
    Server-->>WebSocket: return branches
    WebSocket-->>NativeAPI: branches
    NativeAPI-->>BranchToolbar: branches list

    User->>ChatView: send first message
    alt envMode == "worktree" && no worktreePath
        ChatView->>NativeAPI: git.createWorktree({ branch, cwd })
        NativeAPI->>WebSocket: invoke "git:create-worktree"
        WebSocket->>Server: WS_METHODS.gitCreateWorktree
        Server->>Server: runTerminalCommand("git worktree add ...")
        Server-->>WebSocket: { worktreePath, branch }
        WebSocket-->>NativeAPI: result
        NativeAPI-->>ChatView: worktreePath
        ChatView->>Store: dispatch SET_THREAD_BRANCH(threadId, branch, worktreePath)
    else
        ChatView->>Store: dispatch SET_THREAD_BRANCH(threadId, branch, null)
    end

    Store->>Store: update thread.branch & thread.worktreePath
    ChatView->>NativeAPI: ensure/start session(cwd = worktreePath ?? project.cwd)
    NativeAPI->>WebSocket: start session
    WebSocket->>Server: establish session in selected cwd
    Server-->>WebSocket: session ready
    WebSocket-->>NativeAPI: session active
    NativeAPI-->>ChatView: session active
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

🚥 Pre-merge checks | ✅ 3 | ❌ 2
❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Out of Scope Changes check ⚠️ Warning The PR includes tooling/infrastructure changes (tsup→tsdown migration, Turbo config, Vitest config, package.json restructuring) unrelated to the Git integration feature objectives stated in issue #7. Extract tooling/build changes into a separate PR. Keep this PR focused on Git feature implementation only—branch picker UI, worktree support, persistence schema updates, and related tests.
Docstring Coverage ⚠️ Warning Docstring coverage is 12.20% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Git integration: branch picker + worktrees' accurately summarizes the main changes—adding Git branch selection UI and worktree support for thread management.
Linked Issues check ✅ Passed The PR implements all primary objectives from issue #7: threads associated with local Git branches (current, existing, new), Git worktree-based workspaces, and worktree reuse patterns. Multiple-threads-per-worktree and 'best of N' selection noted as out-of-scope.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch juliusmarminge/git-integration

Comment @coderabbitai help to get the list of available commands and usage tips.

@macroscopeapp

macroscopeapp Bot commented Feb 9, 2026 •

Copy link
Copy Markdown
Contributor

Add branch picker and worktree flow to ChatView and expose NativeApi.git.* methods backed by WebSocket handlers in wsServer.ts

Introduce a BranchToolbar in ChatView for branch selection and worktree creation, wire NativeApi.git.listBranches/createWorktree/removeWorktree/createBranch/checkout/init to WebSocket routes, and update thread state to track branch and worktreePath with session reset on cwd changes. Switch builds to tsdown for desktop/server/contracts and add React Query at the web app root.

📍Where to Start

Start with WebSocket routing for git operations in createServer in wsServer.ts, then review the UI integration in BranchToolbar in BranchToolbar.tsx and thread state changes in store.ts.


Macroscope summarized 9442019.

Comment thread apps/desktop/src/main.ts Resolved
Comment thread apps/desktop/src/main.ts Resolved
Comment thread apps/server/src/git.ts Outdated
.filter((line) => line.length > 0)
.map((line) => ({
name: line.replace(/^[*+]\s+/, ""),
current: line.startsWith("* "),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium

src/git.ts:45 The child.killed flag becomes true immediately after child.kill("SIGTERM") is called, so the SIGKILL fallback is unreachable. Consider tracking process exit separately (e.g., with a flag set in the close event) instead of relying on child.killed.

🚀 Want me to fix this? Reply ex: "fix it for me".

Comment thread apps/server/src/git.ts Resolved
Comment thread apps/desktop/src/terminal.ts Resolved
@juliusmarminge
juliusmarminge force-pushed the juliusmarminge/git-integration branch from adf6a26 to bc70cc4 Compare February 10, 2026 07:39
Comment thread apps/server/src/git.ts
}, input.timeoutMs ?? 30_000);

child.stdout?.on("data", (chunk: Buffer) => {
stdout += chunk.toString();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Low

src/git.ts:55 Multi-byte UTF-8 characters split across chunks will corrupt to �. Consider using StringDecoder from node:string_decoder to properly handle partial characters.

🚀 Want me to fix this? Reply ex: "fix it for me".

🤖 Prompt for AI
In file apps/server/src/git.ts around line 55:

Multi-byte UTF-8 characters split across chunks will corrupt to `�`. Consider using `StringDecoder` from `node:string_decoder` to properly handle partial characters.

Comment thread apps/server/src/git.ts Resolved
juliusmarminge and others added 16 commits February 11, 2026 09:00
Allows users to right-click "+ New thread" to create threads from specific git branches, with optional worktree creation for isolated work. Includes branch sorting (current/default first), graceful handling of non-git repos, and ability to initialize git repos.

- New git IPC contract (listBranches, createWorktree, removeWorktree, init)
- Branch context menu with worktree sub-option in Sidebar
- Thread model extended with branch/worktreePath fields
- Session cwd uses worktree path when available
- Branch sorting: current > main/master > alphabetical

Co-Authored-By: Claude Haiku 4.5 <[email protected]>
Move branch picking from sidebar context menu into ChatView input
toolbar. Add env mode toggle (local/worktree) that locks after first
message, branch dropdown with create-new-branch inline form, and
wire up git:create-branch IPC channel.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Wire up git:checkout IPC channel across the full stack so branch
selection actually checks out the branch. Clear error banners when
a subsequent checkout or branch creation succeeds.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Add non-null assertion for activeProject in worktree creation path
(guarded by earlier check) and add missing branch/worktreePath to
test fixture.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Replace hardcoded dark-mode colors with theme-aware semantic classes
(bg-popover, text-foreground, bg-accent, etc.) so the branch picker
works in both light and dark mode. Detect the real default branch via
git symbolic-ref and show a "default" label (with "current" taking
precedence when both apply).

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Move git operations (listGitBranches, checkoutGitBranch, createGitWorktree,
etc.) from main.ts into git.ts for testability. Add 20 integration tests
that run real git commands against temporary repos covering checkout,
branch creation, worktrees, conflicts, and thread-switching flows.

Also fix: branch checkout now runs regardless of envMode, worktree
creation passes cwd to ensureSession to avoid stale closure bug, and
current branch auto-fills on new threads.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Both openInEditor and the Cmd+O shortcut now use the thread's
worktreePath when available instead of always using activeProject.cwd.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Use worktree path instead of project cwd for git branch queries so
worktree threads correctly report their branch as current. Also update
error banner to use semantic color tokens for light mode support.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Verifies that querying branches from a worktree directory correctly
reports the worktree's branch as current, while the main repo still
shows its own branch — the assumption the BranchToolbar fix relies on.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@juliusmarminge
juliusmarminge force-pushed the juliusmarminge/git-integration branch from 6465e69 to 9fc5ad2 Compare February 11, 2026 17:00
…ate build configs

- Move BranchToolbar below the chat input box to match Codex app layout
- Change worktree path to ~/.t3code/worktrees/{repo}/{branch}
- Split desktop tsdown config into separate main/preload builds to prevent
  code-splitting from leaking node:os into the sandboxed preload script
- Migrate turbo scripts to turbo watch, add desktop start/smoke-test tasks
- Update server output to .mjs, add CJS format, remove tsx dependency

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Comment thread turbo.json Resolved
tony-workbench pushed a commit to tony-workbench/t3code that referenced this pull request Nov 24, 2026
The PR added the @t3tools/provider-omp workspace package without a lockfile
entry, and PR pingdotgg#3 left the lockfile with Clerk overrides, so frozen installs
failed. The lockfile is regenerated: Clerk is gone and provider-omp is linked.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
tony-workbench pushed a commit to tony-workbench/t3code that referenced this pull request Nov 24, 2026
@Jason-RD

Copy link
Copy Markdown

Claude re-review: approve (prior findings fixed). On-host ss-host-1: i18n-check pass, 23 files/513 tests pass, typecheck 4/4, build 2/2. Blacksmith CI unavailable on fork; merging on review + on-host verification.

imetn added a commit to imetn/t4code that referenced this pull request Nov 28, 2026
Polish Web/Desktop scroll chrome and Task Board split-view hierarchy:
- Hide native scrollbars globally in index.css (--app-scrollbar-width: 0px, scrollbar-width: none, ::-webkit-scrollbar hidden) and remove per-component visible scrollbar overrides (markdown code blocks/tables, attachment strip, pending approval detail, embedded document preview).
- Keep ScrollArea's native viewport scrollbar hidden and overlay ScrollBar permanently invisible (pointer-events-none opacity-0) while preserving Base UI layout geometry.
- Flatten the Task Board docked left column in split-pane mode so session cards render directly beneath the column tabs without a nested outer column card border/padding or redundant column header (preserving column containers in the full 4-column board view).
- Record Lock pingdotgg#14 and update Lock pingdotgg#3 in T4_CUSTOMIZATIONS.md, with Chromium browser test coverage.
imetn added a commit to imetn/t4code that referenced this pull request Nov 28, 2026
… colors

Without the nested outer column container in docked split-view mode, session cards across Working, Needs attention, Active, and Settled all rendered as plain white cards with no visual status cue.

- Apply each column's semantic status color tint (`info` blue, `warning` amber, `accent` neutral, `success` emerald) directly to docked split-view cards, selected rings, empty state placeholders, and active status switcher tabs while preserving crisp `bg-card` cards inside the full 4-column board view.
- Add Chromium browser assertions verifying docked status tint classes vs full-board `bg-card` styling and update `T4_CUSTOMIZATIONS.md` Lock pingdotgg#3.
imetn added a commit to imetn/t4code that referenced this pull request Nov 30, 2026
…-only)

Surgical Web-only port of upstream pingdotgg#42576 customizable sidebar thread row layout (Settings → Appearance → Sidebar thread layout), strictly preserving all T4 locked modules:
- Zero changes to Mobile (Lock pingdotgg#5 untouched), right-sidebar ThreadDetailsPanel (Lock pingdotgg#12 untouched), Lock pingdotgg#3, Lock pingdotgg#14, Server, or telemetry
- Preserves Lock pingdotgg#8 (pinned All tab, drag-to-reorder environment filter chips, top Working shelf), Lock pingdotgg#7 (agentMessageSenderNote default off), and pingdotgg#44794 Web overlapped provider icon stack
- Includes independent gpt-6.2-astra blind-review fixes: rem-scaled card height & contain-intrinsic-size for larger UI font sizes, right padding on provider icon slot so custom instance badges are never clipped, disabled live issues.detail queries on preview card hover, keyboard activation on preview cards, horizontal lane bounds & accurate screen-reader drop announcements, plus optional pendingImageCount TS guard in promptStashStore.ts.
andromidasj referenced this pull request in andromidasj/t3code Dec 1, 2026
andromidasj referenced this pull request in andromidasj/t3code Dec 1, 2026
…s (Deep Review closing #xc1)

Base UI keeps some closed popups mounted with role="dialog": the mobile sidebar under 768px and the PR review composer. The Board's J/K/arrow region check and its Escape check treated them as open, so every Board key went dead. Both now match only [data-open] or [data-ending-style] layers, from one list in boardPanel.logic.ts (also closing simplify #3).
josh-maxrewards referenced this pull request in andromidasj/t3code Dec 2, 2026
…#2)

* feat(fork): Board domain and label filters, and group by domain

A desk can now tag its items with a domain and labels. The Board page and
the Board tab show domain chips (color dot, ready count) and label chips
above Needs me, multi-select with an All reset, kept on this device. Group
gains Domain, in the desk's domain order. Rows and the open item show each
item's domain and labels. Desks without tags look exactly as before.

* Board: share one item view between the Board page and tab (Deep Review r1 #s1-1)

* Board: count domain chips under the label picks and label chips under the domain picks (Deep Review r1 #x1-1)

* Board: count bot chips under the domain and label picks (Deep Review r1 #1)

* Board: order domain groups by the shown desks' domains (Deep Review r1 #2)

* Board: hide an item's domain only under its domain's heading (Deep Review r1 #3)

* Board: reuse ChipCount for the bot chips (Deep Review r1 #s1-4)

* Board: one fallback gray for desks and domains (Deep Review r1 #s1-5)

* Board: type the bot chip count test's picks (Deep Review r1 #1)

* Board: clip a row's badges before its time column (Deep Review r2 #v1)

* Board: say nothing filtered is ready when folds hold matches (Deep Review closing #1)
LyricalString pushed a commit to LyricalString/t3code that referenced this pull request Dec 2, 2026
… agent-settable

A user-editable phase catalog (label + color + icon) shown as the pingdotgg#2 bar plus a real row
icon, settable from the menu, the t3 CLI and by agents over MCP. Phase rides the existing
thread.tag.set pipeline as a reserved phase:<slug> tag instead of a new field: a clean-context
refute pass (2026-12-02) verified the command is client-dispatchable and the shell already
carries tags, so the whole server pipeline is reused untouched — a dedicated field would touch
~20 core sites and conflict on every rebase. The pass also inverted one planned decision:
phase writes hit the server, so read-only connections see the menu items disabled (unlike pingdotgg#2's
local colors).

Co-Authored-By: Claude Code <[email protected]>
LyricalString pushed a commit to LyricalString/t3code that referenced this pull request Dec 2, 2026
…> tag (pingdotgg#3 M1)

Agents set a thread's own workflow phase over the existing MCP surface and the t3 CLI:
`t3 thread phase <threadId> <slug|none>`. The phase is one reserved tag `phase:<slug>`
riding the existing thread.tag.set pipeline — no contract, orchestrator or projection
edits. A swap clears every stale phase tag before the new one lands (two commands, the
same non-atomic class as upstream pin); re-setting the current phase stores no event.
Slug is lowercase [a-z0-9-], max 58, because ThreadTag caps at 64 and the prefix costs 6.

Tests: swap order and non-phase-tag survival, clear, idempotence, slug refusal (core.test);
CLI grammar, --json, local refusal of a bad slug (thread.test). Eval case
thread-phase.ndjson added; the live mcp-tool-use eval was NOT run (needs a provider key).
agentContextBudget.json bumps the MCP tool-list ledger by the new tool's 459 bytes.

Co-Authored-By: Claude Code <[email protected]>
LyricalString pushed a commit to LyricalString/t3code that referenced this pull request Dec 2, 2026
LyricalString pushed a commit to LyricalString/t3code that referenced this pull request Dec 2, 2026
…pingdotgg#3 M2)

The pingdotgg#2 "Color" submenu becomes "Phase", built from the new server setting
`threadPhaseCatalog`: one item per catalog entry, checked on the thread's current
`phase:<id>` tag, "Clear phase" last. Picking a phase clears the old tag then sets the
new one (state/threadPhase.ts, the swap M3's migration reuses); the write rides the
existing v2.dispatchCommand atom, so read-only clients get the items disabled by the
Operate guard — pingdotgg#2's color* exemption is deleted, not mirrored.

Each sidebar row with a phase paints the catalog color in the pingdotgg#2 3px bar and a real
Lucide glyph before the title (tooltip = phase label, aria-label for screen readers).
The settings editor (ThreadPhasesSettings) edits label/color/icon per entry: ids are
immutable, the label stays a draft until blur, 12-icon pick-list, MAX_THREAD_PHASES
gate, reset hidden when the catalog is the untouched default. Default catalog = the
owner's hue map: designing/green/palette, planning/violet/compass,
implementing/blue/code, blocked/orange/octagon-alert, urgent/red/flame.

i18n: 8 keys hand-added to all 11 catalogs (never gt generate, per FORK.md); the stale
pingdotgg#2 Color key removed. knip.jsonc scopes a temporary ignore to threadColors' now-dead
export — the migration milestone (M3) retires it with the enum.

Deviations disclosed by the implementer and accepted in review: the settings-search
entry ships without searchTerms; the "New phase" placeholder label is user content, not
chrome (oxlint-disable with reason).

Co-Authored-By: Claude Code <[email protected]>
LyricalString pushed a commit to LyricalString/t3code that referenced this pull request Dec 2, 2026
…order (pingdotgg#3 M2 refute)

The M2 diff-refuter held the design but found two claims no test pinned and one doc
comment that overpromised. Now pinned: a single bad catalog element drops alone while
its neighbors survive, while a non-array value or a catalog past MAX_THREAD_PHASES
rejects the whole ServerSettings decode — and the server discards the settings file on
that (serverSettings.ts, measured) — which the field comment now states exactly. And
setThreadPhase's contract that M3's migration leans on: swap order clear-then-set with
fresh command ids, the SET's outcome reported, a failed clear never followed by a set,
idempotent zero-dispatch, clear-only single dispatch (state/threadPhase.test.ts, 7
tests; settings.test.ts +4).

Verified: contracts settings.test 39/39, web state/threadPhase.test 7/7, both typechecks
exit 0, check:changed green (24 files; the shiftGuard browser timeout in the first run
was load flake — solo rerun 9/9 in 4s, prior gate green).

Co-Authored-By: Claude Code <[email protected]>
LyricalString pushed a commit to LyricalString/t3code that referenced this pull request Dec 2, 2026
LyricalString pushed a commit to LyricalString/t3code that referenced this pull request Dec 2, 2026
pingdotgg#3 M3)

Each stored pingdotgg#2 hue becomes one server phase tag: red→urgent, orange→blocked,
blue→implementing, violet→planning, green→designing. Hues park in
`t3code:thread-hue-pending:v1` first — the ui-state store rewrites its whole
blob from its own (now field-less) state, so an unlanded label parked in that
blob would vanish on any unrelated UI change. A pending entry is deleted only
once its own dispatch reports Success, so offline or read-only rows keep their
hue and retry on the next connect; a thread whose server already carries a
phase, or a value that maps to no phase, drops without dispatch — neither ever
painted a row.

Retires pingdotgg#2's plumbing: the ThreadColorId enum, the store's threadColorById
field, its sanitizer and setThreadColor action, and the scoped knip ignore
whose own comment assigned its removal to this migration.
threadColorBarClassName survives, fed by the catalog color (pingdotgg#2's bar stays).

Refute pass (2026-12-02): holds. Byte-identical keying with the pingdotgg#2 writer
(both scopedThreadKey over the same branded shell ids), no bulk-delete path,
and the store's debounced persist cannot fire before the synchronous adopt at
appInit startup (no-op flush, no pre-call mutators).

Co-Authored-By: Claude Code <[email protected]>
LyricalString pushed a commit to LyricalString/t3code that referenced this pull request Dec 2, 2026
pingdotgg#3 M3 review)

The retry test's mid-flight assertion counted dispatches while the first
attempt's `.finally` chain was settling — deterministic today, but it held only
by microtask-tick arithmetic between the mock's ~6-8 settlement ticks and
vitest's ~2-4 (diff-refute, 2026-12-02). A vitest or engine bump would flip it
red for no product reason. The mock can now hold one outcome unsettled on
demand, so the test proves the guard skips a provably-unsettled attempt.
Proven red with the `inFlight` check removed (1 failed, the other 11 green).

Also refreshes FORK.md: pingdotgg#3 is built and merged, pingdotgg#2's row is retired, and the
migration paragraph now names the pending key and its drop-without-dispatch
rule, which is the part a rebase or a reader must not "simplify".

Co-Authored-By: Claude Code <[email protected]>
LyricalString pushed a commit to LyricalString/t3code that referenced this pull request Dec 2, 2026
pudding240611 added a commit to pudding240611/t3code that referenced this pull request Dec 3, 2026
…stale search cursors, and expose operator proposal priority

Addresses the final 3 findings from the Wave 10 review (M8, L3, and Coordinator pingdotgg#3):
- M8: Propagate optional memoryRecallScope alongside memoryRecall on private thread launches so the server rejects before thread creation if effective recall was disabled or broadened beyond the operator's displayed consent, prompting Web and Mobile to refresh policy; legacy Boolean payloads stay compatible.
- L3: Clear paginated memory-search cursor stack back to page 1 on Refresh or cursor invalidation in both Web and Mobile.
- Expose operator-owned Optimization Proposal priority (0-3) in Web, Mobile, and t3 proposals CLI (submit/triage/list/get) across all 10 locales while keeping priority excluded from agent MCP proposals_submit.

Verified: contracts, client-runtime, server, web, mobile, and desktop effect-tsgo tsrs --noEmit (0 errors), focused server/CLI/client-runtime/Web-browser/Mobile/React-Compiler tests + 36/36 coordinator re-verification tests, fmt, lint, i18n:check, knip:check:files, git diff --check.

Model: gpt-6.2-sol (Codex Fast) + Antigravity coordinator audit
librelois added a commit to Moonsong-Labs/t3code-team that referenced this pull request Dec 3, 2026
feat(team): add RBAC, server-enforced Views, posting rules, and thread locking
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.

feat: Git Integration

3 participants