Repository navigation
Add open-in-editor feature with Cmd+O shortcut - #2
Conversation
Add dropdown in header to open workspace in Cursor or system file manager (Finder/Explorer/Files). Include Cmd+O/Ctrl+O global keyboard shortcut to open in last-used editor, persisted to localStorage. Co-Authored-By: Claude Haiku 4.5 <[email protected]>
WalkthroughAdds an "open in editor" feature: new Changes
Sequence DiagramsequenceDiagram
actor User
participant ChatView as Renderer (ChatView.tsx)
participant Preload as Preload (preload.ts)
participant Main as Main Process (main.ts)
participant OS as Operating System Shell
User->>ChatView: Click "Open in…" or press Cmd/Ctrl+O
ChatView->>ChatView: openInEditor(editorId) and persist lastEditor
ChatView->>Preload: invoke 'shell:open-in-editor' (cwd, editorId)
Preload->>Main: Forward IPC invoke
Main->>Main: Lookup editor in EDITORS
alt editor == 'file-manager'
Main->>OS: shell.openPath(cwd)
else editor has command
Main->>OS: spawn(editorCommand, [cwd], {detached, stdio:'ignore'}) and unref()
end
OS-->>Main: process/path opened
Main-->>Preload: resolve Promise<void>
Preload-->>ChatView: invoke resolves
ChatView->>ChatView: close editor menu
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Comment |
Add Cmd+O/Ctrl+O open-in-editor action in chat view and handle
|
There was a problem hiding this comment.
Actionable comments posted: 4
🤖 Fix all issues with AI agents
In `@apps/desktop/src/main.ts`:
- Around line 143-145: The CI formatter flagged the EDITOR_COMMANDS block — run
the project formatter (e.g., run the formatter or execute `bun run lint`) to
reformat the object literal; specifically ensure the EDITOR_COMMANDS constant
and its entry for "cursor" follow the project's formatting rules (spacing,
trailing commas, and indentation) so the object shape Record<string, { command:
string; args: (cwd: string) => string[] }> and the cursor entry { command:
"cursor", args: (p) => [p] } are formatted exactly as the linter expects.
- Around line 135-153: The IPC handler for ipcMain.handle should validate cwd is
non-empty, await shell.openPath(cwd) and check its returned string for an error
(log/throw when non-empty) instead of assuming success, and protect the spawn
path by wrapping the spawn call in try/catch and attaching an 'error' listener
to the returned child (e.g., child.on('error', ...) to log/throw when the CLI
cannot be spawned); reference EDITOR_COMMANDS and entry (from editor) to locate
the spawn logic, and ensure you handle and surface errors for both
shell.openPath and spawn so the handler doesn't crash or fail silently.
In `@apps/renderer/src/components/ChatView.tsx`:
- Around line 66-69: Validate the value read from localStorage under
LAST_EDITOR_KEY against the known EDITORS list before using it as the initial
state for lastEditor; replace the current initializer (() =>
localStorage.getItem(LAST_EDITOR_KEY) ?? EDITORS[0].id) with logic that reads
localStorage, checks EDITORS.some(e => e.id === stored), and falls back to
EDITORS[0].id when the stored id is missing or not found; also ensure any places
that write to lastEditor (setLastEditor) persist only validated ids to
localStorage.
- Around line 183-191: The keydown handler currently calls e.preventDefault()
unconditionally for Cmd/Ctrl+O even when the action won't run; update the
handler in the useEffect (function handler used for the KeyboardEvent) to only
call e.preventDefault() when api and activeProject are truthy and you are about
to call api.shell.openInEditor(activeProject.cwd, lastEditor), i.e. move or
guard preventDefault() behind the same condition that checks api and
activeProject so the key event is not swallowed when no activeProject exists.
| // Shell handlers | ||
| ipcMain.handle( | ||
| IPC_CHANNELS.shellOpenInEditor, | ||
| async (_event, cwd: string, editor: string) => { | ||
| if (editor === "file-manager") { | ||
| await shell.openPath(cwd); | ||
| return; | ||
| } | ||
| const EDITOR_COMMANDS: Record<string, { command: string; args: (cwd: string) => string[] }> = { | ||
| cursor: { command: "cursor", args: (p) => [p] }, | ||
| }; | ||
| const entry = EDITOR_COMMANDS[editor]; | ||
| if (!entry) throw new Error(`Unknown editor: ${editor}`); | ||
| const child = spawn(entry.command, entry.args(cwd), { | ||
| detached: true, | ||
| stdio: "ignore", | ||
| }); | ||
| child.unref(); | ||
| }, |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
cat -n apps/desktop/src/main.ts | sed -n '135,153p'Repository: pingdotgg/codething-mvp
Length of output: 848
🌐 Web query:
Electron shell.openPath() return value error handling
💡 Result:
shell.openPath(path) returns a Promise<string> that resolves (not rejects) to:
""(empty string) on success- a non-empty error message string on failure (electronjs.org)
So error handling is typically:
import { shell } from "electron";
async function openFile(p: string) {
try {
const err = await shell.openPath(p);
if (err) {
// open failed; Electron returns an error message string
console.error("openPath failed:", err);
// show UI / log / fallback here
}
} catch (e) {
// for unexpected exceptions (e.g., bad argument types, other runtime issues)
console.error("openPath threw:", e);
}
}Key point: check the resolved string—don’t rely only on catch. (electronjs.org)
Citations:
- 1: https://www.electronjs.org/docs/latest/api/shell?utm_source=openai
- 2: https://www.electronjs.org/docs/latest/api/shell?utm_source=openai
🌐 Web query:
Node.js child_process spawn error event handling
💡 Result:
In Node.js, child_process.spawn() can fail asynchronously, so you should always attach an 'error' handler to the returned ChildProcess:
'error'event is emitted when the process could not be spawned (e.g.,ENOENT,EACCES), could not be killed, or IPC send failed. The'exit'event may or may not fire after an'error', so don’t rely on'exit'alone. [1]'close'event fires after the process ends and all stdio streams are closed; it will emit after'exit', or after'error'if the child failed to spawn. [2]
A common safe pattern is to funnel both 'error' and 'close' into a single “done once” handler:
import { spawn } from 'node:child_process';
function spawnChecked(cmd, args, opts) {
const child = spawn(cmd, args, opts);
let settled = false;
const done = (err, result) => {
if (settled) return;
settled = true;
if (err) throw err; // or reject a Promise / call cb(err)
return result;
};
child.once('error', (err) => done(err)); // spawn/kill/IPC failure
child.once('close', (code, signal) => { // stdio fully closed
if (code === 0) return done(null, { code, signal });
done(Object.assign(new Error(`exit ${code ?? 'null'} (${signal ?? 'no-signal'})`), { code, signal }));
});
return child;
}Sources: Node.js ChildProcess event docs for 'error' and 'close'. [1] [2]
References
[1] Node.js docs — ChildProcess event: 'error' (nodejs.org)
[2] Node.js v22 docs — ChildProcess event: 'close' (nodejs.org)
Citations:
- 1: https://nodejs.org/download/release/v7.7.0/docs/api/child_process.html?utm_source=openai
- 2: https://nodejs.org/download/release/v22.19.0/docs/api/child_process.html?utm_source=openai
Add error handling for shell.openPath() and spawn() to prevent crashes and silent failures.
shell.openPath() returns a Promise that resolves to an error string (not thrown), and spawn() emits an 'error' event asynchronously when the process cannot be spawned (e.g., missing CLI). Without handling these, the IPC handler silently fails or crashes. Also guard against empty cwd.
🛠️ Suggested fix
- async (_event, cwd: string, editor: string) => {
- if (editor === "file-manager") {
- await shell.openPath(cwd);
- return;
- }
+ async (_event, cwd: string, editor: string) => {
+ if (!cwd) {
+ throw new Error("cwd is required");
+ }
+ if (editor === "file-manager") {
+ const error = await shell.openPath(cwd);
+ if (error) {
+ throw new Error(error);
+ }
+ return;
+ }
const EDITOR_COMMANDS: Record<string, { command: string; args: (cwd: string) => string[] }> = {
cursor: { command: "cursor", args: (p) => [p] },
};
const entry = EDITOR_COMMANDS[editor];
if (!entry) throw new Error(`Unknown editor: ${editor}`);
- const child = spawn(entry.command, entry.args(cwd), {
- detached: true,
- stdio: "ignore",
- });
- child.unref();
+ await new Promise<void>((resolve, reject) => {
+ const child = spawn(entry.command, entry.args(cwd), {
+ detached: true,
+ stdio: "ignore",
+ });
+ child.once("error", reject);
+ child.once("spawn", () => {
+ child.unref();
+ resolve();
+ });
+ });
},
);📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| // Shell handlers | |
| ipcMain.handle( | |
| IPC_CHANNELS.shellOpenInEditor, | |
| async (_event, cwd: string, editor: string) => { | |
| if (editor === "file-manager") { | |
| await shell.openPath(cwd); | |
| return; | |
| } | |
| const EDITOR_COMMANDS: Record<string, { command: string; args: (cwd: string) => string[] }> = { | |
| cursor: { command: "cursor", args: (p) => [p] }, | |
| }; | |
| const entry = EDITOR_COMMANDS[editor]; | |
| if (!entry) throw new Error(`Unknown editor: ${editor}`); | |
| const child = spawn(entry.command, entry.args(cwd), { | |
| detached: true, | |
| stdio: "ignore", | |
| }); | |
| child.unref(); | |
| }, | |
| // Shell handlers | |
| ipcMain.handle( | |
| IPC_CHANNELS.shellOpenInEditor, | |
| async (_event, cwd: string, editor: string) => { | |
| if (!cwd) { | |
| throw new Error("cwd is required"); | |
| } | |
| if (editor === "file-manager") { | |
| const error = await shell.openPath(cwd); | |
| if (error) { | |
| throw new Error(error); | |
| } | |
| return; | |
| } | |
| const EDITOR_COMMANDS: Record<string, { command: string; args: (cwd: string) => string[] }> = { | |
| cursor: { command: "cursor", args: (p) => [p] }, | |
| }; | |
| const entry = EDITOR_COMMANDS[editor]; | |
| if (!entry) throw new Error(`Unknown editor: ${editor}`); | |
| await new Promise<void>((resolve, reject) => { | |
| const child = spawn(entry.command, entry.args(cwd), { | |
| detached: true, | |
| stdio: "ignore", | |
| }); | |
| child.once("error", reject); | |
| child.once("spawn", () => { | |
| child.unref(); | |
| resolve(); | |
| }); | |
| }); | |
| }, | |
| ); |
🤖 Prompt for AI Agents
In `@apps/desktop/src/main.ts` around lines 135 - 153, The IPC handler for
ipcMain.handle should validate cwd is non-empty, await shell.openPath(cwd) and
check its returned string for an error (log/throw when non-empty) instead of
assuming success, and protect the spawn path by wrapping the spawn call in
try/catch and attaching an 'error' listener to the returned child (e.g.,
child.on('error', ...) to log/throw when the CLI cannot be spawned); reference
EDITOR_COMMANDS and entry (from editor) to locate the spawn logic, and ensure
you handle and surface errors for both shell.openPath and spawn so the handler
doesn't crash or fail silently.
| const [isEditorMenuOpen, setIsEditorMenuOpen] = useState(false); | ||
| const [lastEditor, setLastEditor] = useState( | ||
| () => localStorage.getItem(LAST_EDITOR_KEY) ?? EDITORS[0].id, | ||
| ); |
There was a problem hiding this comment.
Guard against stale lastEditor values in localStorage.
If localStorage contains an unknown editor id (older versions, manual edits), the IPC handler will throw. Prefer validating against EDITORS and falling back.
🧩 Suggested fix
- const [lastEditor, setLastEditor] = useState(
- () => localStorage.getItem(LAST_EDITOR_KEY) ?? EDITORS[0].id,
- );
+ const [lastEditor, setLastEditor] = useState(() => {
+ const stored = localStorage.getItem(LAST_EDITOR_KEY);
+ return EDITORS.some((editor) => editor.id === stored)
+ ? stored
+ : EDITORS[0].id;
+ });📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| const [isEditorMenuOpen, setIsEditorMenuOpen] = useState(false); | |
| const [lastEditor, setLastEditor] = useState( | |
| () => localStorage.getItem(LAST_EDITOR_KEY) ?? EDITORS[0].id, | |
| ); | |
| const [isEditorMenuOpen, setIsEditorMenuOpen] = useState(false); | |
| const [lastEditor, setLastEditor] = useState(() => { | |
| const stored = localStorage.getItem(LAST_EDITOR_KEY); | |
| return EDITORS.some((editor) => editor.id === stored) | |
| ? stored | |
| : EDITORS[0].id; | |
| }); |
🤖 Prompt for AI Agents
In `@apps/renderer/src/components/ChatView.tsx` around lines 66 - 69, Validate the
value read from localStorage under LAST_EDITOR_KEY against the known EDITORS
list before using it as the initial state for lastEditor; replace the current
initializer (() => localStorage.getItem(LAST_EDITOR_KEY) ?? EDITORS[0].id) with
logic that reads localStorage, checks EDITORS.some(e => e.id === stored), and
falls back to EDITORS[0].id when the stored id is missing or not found; also
ensure any places that write to lastEditor (setLastEditor) persist only
validated ids to localStorage.
|
@cursor fix ci pls |
|
All done. Here's what I fixed:
Lint passes cleanly across all three packages. Changes pushed to |
EDITORS config and EditorId type now live in @acme/contracts so the shell.openInEditor IPC channel is strictly typed end-to-end. The main process uses the contract's command field (null = file manager via shell.openPath). Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
- Validate cwd is non-empty in shell:open-in-editor IPC handler - Check shell.openPath() return value and throw on error - Attach spawn error listener to prevent crashes from missing CLI - Validate localStorage lastEditor against known EDITORS list - Only call preventDefault() for Cmd+O when action will run Co-authored-by: Julius Marminge <[email protected]>
Keep open-in-editor dropdown, accept main's removal of status indicator from header. Co-Authored-By: Claude Opus 4.6 <[email protected]>
- Store: index files by cwd+relativePath to avoid cross-worktree collisions; never overwrite dirty buffer on refetch/reopen - EditorPanel: reorder render branches so error state is tested before empty state (was unreachable) - A11y: separate tab activation (div[role=tab]) from close button (proper button element) — no nested interactive elements - Extract shared RightPanelInlineSidebar, RightPanelSheet, and shouldAcceptPanelWidth into RightPanelPrimitives.tsx so PR pingdotgg#2 (Browser panel) only needs to add a config block
The status reader is effectively infallible: readOne wraps every FS call in Effect.orElseSucceed and buildStatusEntry is pure. Yet results were wrapped in SandcastleError twice (reader Effect.catch + ws.ts mapError) and the RPC declared an unreachable union member. EnvironmentAuthorizationError is added separately by authorizeEffect at the WS layer and is the only error that can actually cross the wire. Remove the SandcastleError class, the double-wrap, and the union; the RPC now declares its one real error. Pure deletion, no behavior change. Surfaced by thermo-review (Standards #2 + Quality #3a). Co-Authored-By: Claude Opus 4.8 <[email protected]>
Move the path-scoped restore logic out of the upstream GitVcsDriver into a new fork-local module (pure planScopedRestore planner + thin runScopedRestore orchestrator); GitVcsDriver keeps only the legacy whole-tree path and a thin delegation. Batch the per-path cat-file probe into one ls-tree call. Behavior preserved (CheckpointStore integration tests green). Review findings: standards #1 (code half), quality #1/#2. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…share bootstrap reader Follow-up cleanups from the upstream connection-rewrite merge. pingdotgg#1 Centralize the desktop-local classification. The renderer was inlining `target._tag === "BearerConnectionTarget" && connectionId.startsWith("local:")` in ~7 places to detect a WSL / desktop-local environment. Add connection/desktopLocal.ts as the single source of truth (DESKTOP_LOCAL_CONNECTION_ID_PREFIX, desktopLocalConnectionId for the producer, isDesktopLocalConnectionTarget for consumers) and route platform.ts plus every consumer (Sidebar, ConnectionsSettings, ProviderUpdate*) through it. pingdotgg#2 Carry the WSL label at registration time. platform.ts now labels a secondary from the desktop bootstrap (e.g. "WSL (Ubuntu)") instead of the generic descriptor label, so the provider feature no longer recovers the distro by matching the environment's loopback URL against the bootstrap list. Drops the brittle localBackendInstanceId URL-matcher. pingdotgg#3 Share the desktop-bootstrap reader. Extract readDesktopSecondaryBootstraps into desktopLocal.ts (used by both the platform source and the renderer) and add a useDesktopLocalBootstraps() hook, replacing the Sidebar's bespoke setInterval poller. The platform source's Effect poller and the React hook remain separate timers (different runtimes), but they now read through one function. Verified: web typecheck, connection + provider-logic tests, and lint pass.
… turn as errors Rewinding a turn that is still in flight tears the turn down (the RewindReactor's own stopSession races the starting sendTurn). Two code paths mislabeled that EXPECTED teardown as a hard error, so a successful in-flight rewind left two scary red banners behind. Feature C's one-click in-flight rewind is what exposed this pre-existing race; the rewind itself succeeds and the next send cold-starts a clean session, so both banners were purely cosmetic. Fix #1 (turn-start SessionClosedError): when a rewind/interrupt/stop closes the session out from under a starting turn, the Claude adapter's prompt-queue offer fails and toSessionError maps it to ProviderAdapterSessionClosedError on method turn/start. handleTurnStartFailure only treated Cause.hasInterruptsOnly as benign, so this typed error fell through to setThreadSessionErrorOnTurnStartFailure (session.lastError -> red banner) and appendProviderFailureActivity. It now also treats a ProviderAdapterSessionClosedError in the cause as benign via the new isBenignTurnStartFailureCause predicate. Scoping: gated on the ProviderAdapterSessionClosedError tag specifically (not error_during_execution broadly). toSessionError only produces that tag when the message says "closed", which on turn/start can only mean the prompt queue was shut down by a concurrent teardown — a genuine adapter fault surfaces as ProviderAdapterRequestError/process error and is still reported. So the guard is the narrow concurrent-teardown case, not a blanket suppression. Fix #2 (SDK post-interrupt result): interrupting a turn mid-flight leaves the Agent SDK's final message as the user prompt with no assistant reply, so it emits a result with subtype error_during_execution, is_error:true, stop_reason:null, and errors[0] starting with "[ede_diagnostic] result_type=user last_content_type=n/a stop_reason=null". isInterruptedResult only matched interrupt/aborted keywords (and its error_during_execution branch required is_error:false), so this shape classified as "failed" -> emitRuntimeError -> red banner. It now recognizes the [ede_diagnostic] + null stop_reason shape as interrupted, so turnStatusFromResult yields "interrupted" and handleResultMessage skips emitRuntimeError. Gated on the [ede_diagnostic] marker + null stop_reason so a genuine error_during_execution (real error content, non-null stop_reason) still classifies as failed. Tests (TDD, red before green), plus over-suppression guards: - isBenignTurnStartFailureCause: SessionClosedError -> benign, interrupt-only -> benign, genuine ProviderAdapterRequestError -> NOT suppressed; integration test that a genuine turn-start failure still surfaces a lastError banner. - turnStatusFromResult/isInterruptedResult: ede shape -> "interrupted", genuine error_during_execution -> "failed"; adapter integration test that the ede result completes the turn as interrupted with no runtime.error event. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01GeAJ1pbJr8HZ4BE89fC6HU
Canvas < column < card: recessed column tint (bg-muted/30 was a ~1% tint), elevated card fill — shadow on light, lightened translucent surface on dark. Theme tokens untouched (index.css is upstream-owned). Also: STATUS planning entry for quick-win batch pingdotgg#2. Co-Authored-By: Claude Fable 5 <[email protected]>
…ues to needs_review Co-Authored-By: Claude Fable 5 <[email protected]>
* Add open-in-editor feature with Cmd+O shortcut Add dropdown in header to open workspace in Cursor or system file manager (Finder/Explorer/Files). Include Cmd+O/Ctrl+O global keyboard shortcut to open in last-used editor, persisted to localStorage. * Move editor definitions to contracts for strict IPC typing EDITORS config and EditorId type now live in @acme/contracts so the shell.openInEditor IPC channel is strictly typed end-to-end. The main process uses the contract's command field (null = file manager via shell.openPath). * Fix biome formatting issues * fix: add error handling and address review feedback - Validate cwd is non-empty in shell:open-in-editor IPC handler - Check shell.openPath() return value and throw on error - Attach spawn error listener to prevent crashes from missing CLI - Validate localStorage lastEditor against known EDITORS list - Only call preventDefault() for Cmd+O when action will run Co-authored-by: Julius Marminge <[email protected]> --------- Co-authored-by: Claude Haiku 4.5 <[email protected]> Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: Julius Marminge <[email protected]>
…gdotgg#2) * feat(bots): add persistent bot threads and quiet conversations * feat(bots): give bots dedicated navigation and a work view * fix(bots): keep automatic rotation from rejecting messages and fill bot navigation gaps Automatic bot rotation no longer reuses the explicit fresh-session rejections: it falls back to the current session while a fork or merge-back is pending or the live session still has background work. Rotation counts only interactive user turns from the latest started fresh run, and native resume no longer receives the bot charter. Bots join thread jump shortcuts, get the thread context menu, rename and unread state, Find reveals matches hidden by the quiet filter, Claude replies stream in Quiet view, and bot labels reach the relationships panel through one labels object. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(web): polish bot navigation and view controls * fix(web): preserve bot navigation and conversation access --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…-changed inputs, reservation publish, keep CAS, and guard table coverage Addresses all 6 autonomous-iteration & architecture-guard findings from the Wave 10 review (pingdotgg#2, M9, M10, M11, M12, L4): - Reject symbolic iteration branch refs in IterationWorkspace.refHead and pass --no-deref to git update-ref -d on rollback so a symbolic ref can never delete another branch. - M9: Share check:changed ignored-input definitions via packages/shared/src/checkChangedInputs.ts and include ignored input fingerprints in RevisionVerification and final-commit checks. - M10: Publish owner.json atomically via unique temporary files with link/rename semantics so an interrupted preparation never strands replay or cleanup. - M11: Require the owning workflow_runs row to remain open (ended_at IS NULL) in the SQL CAS predicate for transitioning an iteration claim to kept. - M12: Allow IterationWorkspace.rollback to locate already-owned worktrees from durable reservations even after project archive, tracked-folder change, or WebCodex rebind while retaining active gates on creation/finalization. - L4: Match actual workflow_waits table in scripts/lib/architecture-source.ts with a negative-control assertion in GuardInvariants.test.ts. Verified: contracts, shared, server, and scripts effect-tsgo tsrs --noEmit (0 errors), 43/43 tests across 5 suites (AutonomousIteration, RevisionVerification, GuardInvariants, OptimizationProposals, WorkflowRuntime), fmt, lint (0 errors/warnings), i18n:check, knip:check:files, git diff --check. Model: gpt-6.2-sol (Codex Fast) + Antigravity coordinator audit
…stomization pingdotgg#2 Where the row paint and the menu item go, the two ways to carry the value (thread field like tags, or a local-only map), the rebase cost of each, and the i18n tax. Not built yet; the paint variant is still the owner's call. Co-Authored-By: Claude Code <[email protected]>
… 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]>
…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]>
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]>
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]>
feat(team): add thread following and per-member notification gating


Summary
Add a header dropdown to open the workspace in Cursor or the system file manager (Finder on macOS, Explorer on Windows, Files on Linux). Includes a global
Cmd+O/Ctrl+Okeyboard shortcut that opens in the last-used editor, with persistence via localStorage.Changes
shell:open-in-editorin contractsshell.openPath()for cross-platform file manager supportCmd+O/Ctrl+O🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Platform Integration