Commit Graph
1898 Commits
Author SHA1 Message Date
Theo BrowneandClaude Fable 5 0f16c5e6d9 Deflake CursorAdapter interrupt test cross-snapshot assertion
The test asserted the session/cancel request against the log snapshot
returned by the *second* waitForJsonLogMatch, but only the first wait
guaranteed that line — the two log appends are independent, so under
CI load the second snapshot can miss (or tear) the cancel line and the
assertion fails spuriously. Each assertion now checks the snapshot its
own wait resolved on. This flake predates the branch (zero Cursor
files are touched here) but kept failing this PR's Test job.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-02 13:18:24 -07:00
Theo BrowneandClaude Fable 5 3adf7567f7 Address bugbot follow-ups: paging empty-state, error resultPreview
- WorkflowPanel: track a render-visible caught-up flag so the transcript
  shows "Loading transcript…" until the first read reaches EOF — an
  absence of parsed entries mid-drain means still paging, not that the
  agent produced no output
- workflowUi: error rows fall back to resultPreview when the snapshot
  carries no error field, so red rows always explain the failure inline

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-02 13:09:44 -07:00
Theo BrowneandClaude Fable 5 a8ee943c92 Two-line agent rows: wrapping labels, meta line beneath
Long agent labels were shrink-0 and pushed the model/stats readout off
the clipped right edge. Rows now stack: the label owns the first line
and wraps freely, and model · stats · badges · error text sit on a
muted meta line under it — nothing competes for horizontal space, so
nothing clips regardless of label length. The chevron and status dot
center against the first text line via fixed line-height boxes.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-02 12:47:23 -07:00
Theo BrowneandClaude Fable 5 bc9ab83e29 Show live per-agent stats while running; drop inline row previews
The SDK emits tokens/toolCalls on every progress tick (verified against
the bundled runtime), so agent rows now show them live; elapsed time for
a running agent derives from lastProgressAt - startedAt, which advances
tick-by-tick without a client timer. Settled agents keep the reported
total duration.

Agent rows no longer render the routine inline preview text (result and
last-tool snippets) — the expandable transcript owns that detail. Error
text stays inline since it explains a red row at a glance.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-02 12:42:15 -07:00
Theo BrowneandClaude Fable 5 93cd36a9a0 Show per-agent stats and clean up the transcript view
- Forward the SDK snapshot's per-agent tokens / toolCalls / durationMs
  through the contract, adapter normalization, and view model; agent
  rows now show model plus "94.2k tok · 47 tools · 7m 03s" (duration
  once the agent settles), mirroring the Claude Code TUI
- Rewrite the transcript renderer: only assistant text and tool calls
  render (tool rows as "→ Name input-preview"); user turns, tool
  results, attachments, and thinking are skipped instead of printing
  raw type names ("user attachment attachment")
- Bound transcript memory: retain a 600-line tail with an
  "earlier activity trimmed" notice so million-token agent threads
  cannot grow client memory unbounded

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-02 12:30:46 -07:00
Theo BrowneandClaude Fable 5 8da4f9e1d0 Make workflow completion order-robust against inverted sequences
A task.completed for a known workflow task now creates the run when its
task.started has not been applied yet — adopted runs can carry reset
provider sequences across CLI restarts, letting the completion sort
first. The later-applied started only fills metadata and can never
resurrect a terminal status, so derivation correctness no longer
depends on the comparator at all.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-02 05:29:04 -07:00
Theo BrowneandClaude Fable 5 cb5a39a68c Restore cause on WorkflowInspectionError per service error conventions
Real filesystem failures (read-failed / not-found wraps) forward their
underlying error as an optional cause, matching the GitCommandError
convention; pure validation reasons stay cause-less. The paths a cause
can carry are ones the client supplied in the request, so this does not
reintroduce the earlier information-exposure concern.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-02 05:17:33 -07:00
Theo BrowneandClaude Fable 5 0eaeb94564 Address macroscope + cursor follow-up review findings
- ClaudeAdapter: dedupe workflow agents/phases by index (last write wins)
  before applying entry caps, so repeated slot updates cannot exhaust the
  cap and freeze later agents stale; restrict sessionUrl to http(s) so a
  hostile tool result cannot smuggle a javascript: href
- workflowUi: guard sessionUrl scheme again at both anchor render sites
  (defense in depth for payloads persisted before the adapter filter)
- Ingestion: JSON-encode the (threadId, taskId) tuple in stable workflow
  activity ids to remove delimiter-ambiguity collisions
- workflow-logic: order same-timestamp activities by provider sequence
  then lifecycle rank so task.completed can never apply before its
  task.started
- WorkflowPanel/Card: scope phase and agent row keys by taskId so
  switching runs remounts rows instead of leaking expanded transcript
  state and cursors across runs
- workflowUi: phase progress counter counts settled (done + error)
  agents instead of reporting 0/1 for an errored terminal phase
- client-runtime: readJournal query polls every 4s while mounted so the
  Logs tab picks up new results during a live run
- mobile: keep workflow task.completed rows (only per-tick progress is
  suppressed) — with no workflow card on mobile it is the only signal a
  workflow finished or failed

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-02 05:14:52 -07:00
Theo BrowneandClaude Fable 5 1610d39a1d Address cursor bot review: session-gate, transcript tail, mobile noise
- workflow-logic: settle in-flight agents to "error" when terminalizing
  a run whose session died, so a stopped chip never sits above pulsing
  "running" agents; drop the dead hasStartedActivity field (snapshot-only
  runs render intentionally after history trims)
- ChatView: gate workflow liveness on derivePhase so interrupted
  sessions also terminalize runs, matching disconnected-session UX
- WorkflowPanel: fetch the transcript once more when a run leaves
  "running" so lines appended after the last poll tick are not lost
- mobile: suppress workflow-owned task.progress/task.completed rows in
  the work log, mirroring desktop (mobile has no workflow card yet)

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-02 05:07:28 -07:00
Theo BrowneandClaude Fable 5 e5b721efc6 Address review findings from multi-agent review pass
- WorkflowInspectionService: re-contain joined leaf files so a symlink
  named journal.jsonl / agent-<id>.jsonl cannot escape the projects root
  (readScript already did this); add regression tests for both
- Stop serializing raw fs error causes in WorkflowInspectionError
- ProviderCommandReactor: surface stopTask failures as a
  provider.task.stop.failed activity instead of a silent log warning
- ProviderService.stopTask: don't resurrect a stopped session via
  recovery just to stop a task
- Ingestion: scope stable workflow activity ids by threadId so SDK task
  id reuse across threads cannot collide in the projection table
- WorkflowPanel: keep polling transcripts past prior EOF ("complete"
  means caught-up, not finished); reuse useCopyToClipboard for the
  resume-command button
- workflow-logic: terminalize runs left "running" when the provider
  session is gone; add a revision counter so timeline rows re-render on
  content changes even when timestamps collide

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-02 04:57:52 -07:00
Theo BrowneandClaude Fable 5 ad171b3f42 Add workflow run visibility: live agent tree, script view, transcripts
Surface Claude Agent SDK workflow runs (the Workflow orchestration tool)
end to end in the desktop app:

- Contracts: WorkflowProgressEntry schemas, run handles, workflow
  inspection RPCs, thread.task.stop command + task-stop-requested event
- ClaudeAdapter: normalize the SDK's undocumented workflow_progress
  snapshot (size-capped, tolerant), forward workflow identity on task
  events, emit task.workflowMeta from Workflow tool results, stopTask
- Ingestion: upsert workflow snapshots under a stable per-task activity
  id so projections and reconnect payloads stay one row per run
- WorkflowInspectionService: path-validated, size-capped reads of the
  run's script, journal, and per-agent transcripts (realpath containment
  under ~/.claude/projects)
- Web: WorkflowRunCard inline in the chat timeline, a workflow right-
  panel surface with Run/Script/Logs tabs, cursor-paged transcript
  polling, stop + resume affordances; remote runs link to their cloud
  session

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-02 03:26:48 -07:00
Julius Marminge fda6486233 Restore chat scroll affordances and add timeline minimap (#3587) 2026-06-29 19:35:16 +00:00
Jgratton24 a9b1190a11 Desktop: parallel WSL + Windows backends with mode picker (#2751) 2026-06-27 08:53:34 -07:00
Julius Marminge 44fb34ad53 Stabilize preview browser surfaces, automation, and recording (#3565) 2026-06-27 08:18:28 -07:00
Julius Marminge 6245c547c2 Fix native composer lag with revision-gated updates (#3574) 2026-06-26 16:55:44 -07:00
Julius Marminge 24abab789e Stabilize chat scroll anchoring after send (#3564) 2026-06-26 14:26:36 -07:00
52b04b947e fix(grok): Harden ACP resume with replay-idle load readiness (#3156)
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: codex <[email protected]>
2026-06-25 23:34:08 -07:00
Julius Marmingeandcodex e9ed70c5b9 [codex] Fix preview automation edge cases (#3561)
Co-authored-by: codex <[email protected]>
2026-06-25 20:08:27 -07:00
Julius Marmingeandcodex ffae5410e8 Route preview automation through live owner streams (#3548)
Co-authored-by: codex <[email protected]>
2026-06-25 19:06:44 -07:00
Julius MarmingeandJulius Marminge 31dfe3596e Fix Electron dev and packaged renderer startup (#3557)
Co-authored-by: Julius Marminge <[email protected]>
2026-06-25 20:58:38 +00:00
Julius Marminge c2776c2336 Restore right panel inset when maximized (#3555) 2026-06-25 17:07:33 +00:00
Julius MarmingeandJulius Marminge 22f021ed69 [codex] Upgrade Legend List chat scrolling (#3545)
Co-authored-by: Julius Marminge <[email protected]>
2026-06-24 15:39:17 -07:00
Wout StiensandCodex a4964b3b36 [codex] fix: show standalone element-pick context (#3527)
Co-authored-by: Codex <[email protected]>
2026-06-23 13:04:20 -07:00
c6c64918f8 Reduce ChatMarkdown settings rerenders (#3536)
Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
2026-06-23 11:47:26 -07:00
Wout StiensandCodex 4abf8b46c5 [codex] fix: ignore stale shell reducer events (#3517)
Co-authored-by: Codex <[email protected]>
2026-06-22 22:33:23 -07:00
Wout StiensandCodex 3083d712ee [codex] fix: clarify Cursor CLI setup error (#3519)
Co-authored-by: Codex <[email protected]>
2026-06-22 22:33:01 -07:00
Julius Marminge 6672a1d210 Bump Clerk packages and refresh lockfile (#3511) 2026-06-22 16:59:56 -07:00
92e54fb96c [codex] fix: guard DPoP fallback URL construction (#3503)
Co-authored-by: Codex <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
2026-06-22 16:21:06 -07:00
Julius MarmingeandJulius Marminge 8cc9a6fa6b [codex] Restore T3 Connect account controls (#3492)
Co-authored-by: Julius Marminge <[email protected]>
2026-06-22 15:58:54 -07:00
b2d17b7108 Add main sidebar toggle (#3497)
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: codex <[email protected]>
2026-06-22 14:00:30 -07:00
Abdul AzeezandJulius Marminge fb1034546f feat: add persistent word-wrap setting for chat code blocks and tables (#3480)
Co-authored-by: Julius Marminge <[email protected]>
2026-06-22 13:14:24 -07:00
f5f98cf0ae Stabilize composer provider state while typing (#3507)
Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
2026-06-22 12:52:13 -07:00
Julius Marmingeandcodex 37ac970e28 Persist mobile composer selectors across drafts (#3496)
Co-authored-by: codex <[email protected]>
2026-06-22 12:37:31 -07:00
Wout StiensandCodex 8919ae7c53 [codex] Reject unsupported remote pairing protocols (#3498)
Co-authored-by: Codex <[email protected]>
2026-06-22 10:15:43 -07:00
Wout StiensandCodex c1e2408e1f [codex] fix: preserve localhost preview hosts (#3499)
Co-authored-by: Codex <[email protected]>
2026-06-22 10:14:16 -07:00
Wout StiensandCodex 8b993bc9ff [codex] fix: restore pending input keyboard activation (#3501)
Co-authored-by: Codex <[email protected]>
2026-06-22 10:10:47 -07:00
Wout StiensandCodex ea52bb1dbd [codex] fix: guard trace ID clipboard copy (#3505)
Co-authored-by: Codex <[email protected]>
2026-06-22 09:46:15 -07:00
Illia Panasenko 28107e89c2 chore: remove AnnotatableFileDiff leftovers, rename file (#3488) 2026-06-21 20:31:26 -07:00
Julius Marminge 82a9bcc7f4 [codex] add session context to credential errors (#3349) 2026-06-20 20:45:17 -07:00
Julius Marminge 61f8d46fa2 [codex] Enforce Effect error handling conventions (#3380) 2026-06-20 20:43:41 -07:00
Julius Marminge 0debebafbb [codex] Structure thread archive blocked error (#3451) 2026-06-20 20:41:58 -07:00
Julius Marmingeandcodex 2a29de7502 [codex] Structure primary auth validation failures (#3471)
Co-authored-by: codex <[email protected]>
2026-06-20 20:20:12 -07:00
Julius Marmingeandcodex 8c1605b383 [codex] Structure OpenCode text generation failures (#3472)
Co-authored-by: codex <[email protected]>
2026-06-20 20:20:09 -07:00
Julius Marmingeandcodex 90074e359f [codex] Preserve desktop update state causes (#3473)
Co-authored-by: codex <[email protected]>
2026-06-20 20:20:07 -07:00
Julius Marmingeandcodex 6155f5cf64 [codex] Preserve VCS project config error causes (#3474)
Co-authored-by: codex <[email protected]>
2026-06-20 20:20:04 -07:00
Julius Marmingeandcodex e3970e755b [codex] Preserve APNs delivery failure context (#3475)
Co-authored-by: codex <[email protected]>
2026-06-20 20:20:01 -07:00
Julius Marmingeandcodex 3c246f56b4 [codex] Structure VCS process boundary errors (#3476)
Co-authored-by: codex <[email protected]>
2026-06-20 20:19:59 -07:00
Julius Marmingeandcodex cebbe6ff19 [codex] Preserve child process termination context (#3469)
Co-authored-by: codex <[email protected]>
2026-06-20 19:20:04 -07:00
Julius Marmingeandcodex e4a84a348e [codex] Structure release output failures (#3470)
Co-authored-by: codex <[email protected]>
2026-06-20 19:20:01 -07:00
Julius Marmingeandcodex 61e6d89d69 [codex] Structure GitHub CLI failures (#3456)
Co-authored-by: codex <[email protected]>
2026-06-20 19:14:35 -07:00