Commit Graph
1835 Commits
Author SHA1 Message Date
Theo BrowneandClaude Fable 5 d1faaa16ff Clear pending wake claims on session error
The domain-event fiber can observe session-set(error) after the
turn.start command is accepted but before dispatchWake stamps the claim
in-flight. Phase-guarding the release left that pending claim behind
with nothing else to clear it, blocking every future wake for the
thread. Release regardless of phase — releaseClaim only rewinds
in-flight claims, so a pending release is just a drop.

Regression test verified to fail against the phase-guarded release.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-26 20:00:20 -07:00
Theo BrowneandClaude Fable 5 355a2893d4 Address round-4 review feedback
- Serialize wake claim transitions with a semaphore so the post-dispatch
  cursor ack and a concurrent release can no longer interleave; the ack
  and wake-count increment are now one critical section with the claim
  check (Macroscope)
- Rewind the cursor on session-set(error): the provider reactor emits it
  before provider.turn.start.failed, so dropping the claim there left the
  failure handler nothing to restore and acked events were lost. A clean
  session finish still just frees the claim (Bugbot, high)
- Only mark boot reconciliation complete when every orphan ended
  successfully, so failures are retried on the next poll (Bugbot)
- Drop the registration when session teardown runs before the engine is
  bound, instead of leaving a monitor that can wake a dead session
  (Bugbot)

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-26 19:51:15 -07:00
Theo BrowneandClaude Fable 5 0c1de35f5a Harden PR monitoring after adversarial review
Findings from a multi-agent review panel (23 confirmed after two-lens
adversarial verification), grouped by root cause:

Lifecycle identity
- Thread a monitor generation through monitor commands, events, and the
  projected monitor state; reject updates/ends whose generation is not
  the active one, and make every registry removal generation-conditional
  so a delayed lifecycle event cannot delete a newer monitor
- Re-validate registration, projected monitor status, archive state,
  generation, and claim at the wake send boundary (after the fresh fetch,
  not before it)

Event loss
- Diff before the readiness exit: actionable activity now wins over
  ending as ready, so a bot comment landing in the same poll as green CI
  is never discarded
- Persist non-actionable cursor transitions so resolved→reopened is
  still detectable
- Acknowledge the cursor only if the wake claim still exists, so a
  user-turn release is not overwritten

Readiness
- Collapse reviews to each reviewer's latest opinionated review, so an
  approval supersedes that reviewer's earlier changes-requested
- Re-include pre-monitor review threads once they are edited or reopened

Snapshot integrity
- Final terminal/head revalidation after pagination, with one bounded
  refetch on head change
- Fetch the last 10 comments per review thread and track per-thread
  updatedAt so edits to non-final comments are visible
- Reopened threads wake regardless of self-authorship
- Include the changes-requested review body in the wake prompt

Lifecycle events
- Archive atomically emits thread.monitor-ended before thread.archived,
  mirroring settle
- Treat a queued-but-unadopted user turn as busy at the send boundary
- Boot reconciliation isolates per-thread failures (Bugbot)

UI
- Gate ready-state PR actions on the checkout PR matching the monitored
  PR number
- Wake snoozed threads on monitor ready/needs-attention/session-ended
- Legacy sidebar renders the ready payoff and a needs-attention state;
  session failure outranks Monitoring
- Reset merge confirmation when PR or monitor status changes
- endThreadMonitor honors a caller-provided endedAt

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-26 19:39:43 -07:00
Theo BrowneandClaude Fable 5 2ff63fb2b7 Address round-2 review feedback
- Ignore review-thread activity whose latest comment is the viewer's own
  reply, breaking the self-triggered wake cycle
- Retry boot reconciliation on the first successful poll instead of
  swallowing a failed shell snapshot at startup
- Remove the registration when archive teardown dispatch fails so
  archived threads are never polled or woken again
- Stamp wake claims with the turn command's createdAt so provider
  turn-start failures (which echo that timestamp) match the release
  condition; a fresh post-dispatch timestamp could never match

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-26 19:39:42 -07:00
Theo BrowneandClaude Fable 5 e5ea2c65d2 Address review feedback from Bugbot and Macroscope
- Stop prepareMcpSession ending the active monitor on session start
  (session recycles no longer kill their own babysit)
- Fail closed at the wake send boundary: a failed fresh PR fetch discards
  the wake instead of falling back to the stale poll state
- Correlate provider.turn.start.failed releases by dispatch time and
  rewind wakeCount alongside the cursor
- Monotonic generation allocator; generation-conditional
  updateCursor/incrementWake/remove so stale polls can't mutate a
  newer monitor
- Dispatch thread.monitor.end before removing the registration in
  session teardown; end monitors on thread.archived
- Preserve wakeCount on idempotent monitor.start replay (breaker can't
  be reset)
- Key check-run cursors by head SHA + name + run id; detect
  resolved→unresolved thread reopens
- Human changes-requested reviews now block readiness
- Thread monitoringStartedAt from the registration so pre-existing
  unresolved threads don't block readiness forever
- Use the PR's base ref in the wake prompt instead of hard-coded main
- Boot reconcile: threads projecting "monitoring" with no registration
  are ended as session-ended

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-26 19:39:42 -07:00
Theo BrowneandClaude Fable 5 f1185df227 Fix formatting in SidebarV2
Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-26 19:39:42 -07:00
Theo BrowneandClaude Fable 5 63e07db893 Add PR monitoring: server-driven babysit mode for agent threads
Threads can now formally monitor a PR after creating it. The agent calls a
new monitor_start MCP tool; a dedicated PullRequestMonitor service polls
GitHub every 30s, diffs review comments / reviews / check runs against a
per-thread cursor, and wakes the thread with a self-contained prompt when
there is something to address. The server — never the agent — declares the
PR ready from head-SHA-anchored GitHub state.

- GitHub monitor snapshot fetch (reviews, threads, check runs, mergeability)
  with pure cursor-diff and readiness modules
- thread.monitor.start/update/end domain events through decider/projector,
  monitor state on the thread shell, migration 034 (monitor_json)
- Wake dispatch protocol: claim → fresh terminal revalidation at the send
  boundary → dispatch → cursor ack only after accepted start; user turns
  always win and rewind in-flight wake cursors so events re-diff; 10-wake
  circuit breaker ends as needs-attention
- Monitoring holds the thread unsettled; user settle ends the monitor;
  session teardown ends it as session-ended
- UI: steady cyan Monitoring pill (never masks approval/input/failed),
  blockers sub-line, header MonitorStrip with Stop, emerald Ready-to-merge
  state with confirm dialog; clients can only end a monitor as "stopped"

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-26 19:39:42 -07:00
Theo BrowneandClaude Opus 5 5719e8ac40 feat(web): show fast mode as a bolt instead of a "Normal" label (#4488)
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
2026-07-24 19:28:37 -07:00
jan 38cfc25e54 feat(web): add collapse-all toggle to diff panel (#4475) 2026-07-24 18:15:45 -04:00
41a430a88e Add Claude Opus 5 model (#4472)
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Co-authored-by: Theo Browne <[email protected]>
2026-07-24 13:16:33 -07:00
Julius Marmingeandcodex ece05087a7 [codex] Fix glass hover compositing artifacts (#4446)
Co-authored-by: codex <[email protected]>
2026-07-24 12:25:01 +00:00
Julius Marmingeandcodex a7ee3092c3 Color settled PR labels on hover (#4451)
Co-authored-by: codex <[email protected]>
2026-07-24 14:08:39 +02:00
Julius Marmingeandcodex f7cc776488 Restore model picker layout and retain iterative test state (#4450)
Co-authored-by: codex <[email protected]>
2026-07-24 14:01:47 +02:00
Julius Marminge 15e875a2d9 Increase light-mode contrast for user message bubbles (#4441) 2026-07-24 10:02:36 +00:00
202e5609ff feat(sidebar-v2): thread snoozing (#4311)
Co-authored-by: Claude Fable 5 <[email protected]>
Co-authored-by: maria <[email protected]>
2026-07-23 22:09:32 -07:00
Theo BrowneandClaude Fable 5 bb38c3320d fix(web): keep settled threads reachable when opened directly (#4413)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-07-23 19:18:32 -07:00
Theo BrowneandClaude Fable 5 6b9a5987f6 fix: Claude Code skills discoverable for the composer $ picker (#4414)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-07-23 18:39:42 -07:00
Theo BrowneandClaude Fable 5 fc3f78f5d9 fix: tone down branch-mismatch banner (#4416)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-07-23 18:38:05 -07:00
Theo BrowneandClaude Fable 5 2f41c073a2 Stop new threads inheriting checkout/branch from viewed thread (#4411)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-07-23 18:06:21 -07:00
Theo Browne 51672b6ecb feat(web): collapse large git diffs by default to make chat more readable (#4409) 2026-07-23 18:06:04 -07:00
Julius Marmingeandcodex 67a7b1a1d3 Improve composer glass fallbacks (#4406)
Co-authored-by: codex <[email protected]>
2026-07-23 22:41:10 +00:00
Julius Marminge ce467da9cf Polish iOS git progress overlay with glass effects (#4387) 2026-07-24 00:39:09 +02:00
Julius Marminge 6ef7aa8399 Fix composer context strip alignment and glass shell (#4404) 2026-07-23 18:32:14 -04:00
Theo Browne 91dfe60a99 Fix thread loading flash (#4396) 2026-07-23 15:19:06 -07:00
maria edb12401e5 fix(cli): publish nightly branded favicons (#4372) 2026-07-23 23:36:02 +02:00
79fe11bc1c Add preview color scheme controls and simplify project grouping (#4385)
Co-authored-by: codex <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
2026-07-23 23:35:40 +02:00
Julius Marmingeandcodex b3e51317e4 Fix logical project grouping labels on mobile (#4391)
Co-authored-by: codex <[email protected]>
2026-07-23 22:57:42 +02:00
Theo BrowneandClaude Fable 5 ddd5a46f39 fix(web): sidebar v2 polish — jump hints, working duration, in-flight fade, settled sort (#4274)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-07-23 22:50:19 +02:00
Theo Browne 88c69ffff6 fix(server): parse CLI version in update preflight (#4389) 2026-07-23 12:58:33 -07:00
maria 979854895c Fix thread tooltip folder icon color (#4383) 2026-07-23 18:10:51 +00:00
maria 9cbe50d10d fix(web): restore dark composer toolbar styling 2026-07-23 12:52:15 -04:00
Julius Marmingeandcodex 9d9208cec5 [codex] Group projects in new-thread pickers (#4312)
Co-authored-by: codex <[email protected]>
2026-07-23 16:11:48 +00:00
Julius Marmingeandcodex 57100fba85 [codex] restore Sidebar V2 project actions (#4373)
Co-authored-by: codex <[email protected]>
2026-07-23 16:11:27 +00:00
3afb4a9ef9 Restore grouped project filtering in Sidebar V2 (#4282)
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: codex <[email protected]>
2026-07-23 18:06:56 +02:00
Julius Marmingeandcodex 315b27385d [codex] Deduplicate connection failure messaging (#4367)
Co-authored-by: codex <[email protected]>
2026-07-23 18:06:49 +02:00
Julius Marmingeandcodex 719c905eac [codex] Move mobile project grouping to General settings (#4315)
Co-authored-by: codex <[email protected]>
2026-07-23 18:06:44 +02:00
Julius Marmingeandcodex 0542abc75e [codex] Group project scopes in mobile thread lists (#4314)
Co-authored-by: codex <[email protected]>
2026-07-23 18:06:38 +02:00
Julius Marmingeandcodex 7609495bf7 [codex] Move project grouping to General settings (#4313)
Co-authored-by: codex <[email protected]>
2026-07-23 18:06:33 +02:00
Yukun Shan b41e89eba9 fix(web): warn before silent Windows updates (#4350) 2026-07-23 14:36:56 +02:00
Julius Marmingeandcodex 4d83436415 Unify dialog glass and fix composer overlays (#4365)
Co-authored-by: codex <[email protected]>
2026-07-23 14:15:29 +02:00
Julius Marminge e51538b812 Restore light-mode surfaces and refine dialog styling
- Restore light-mode glass, dialog, dropdown, and composer colors
- Refine provider wizard, changed-file cards, sidebar controls, and buttons
- Update wizard step tests for the new list structure
2026-07-23 13:09:55 +02:00
Julius Marminge 1c9a6de26e Add shared t3.json project configuration support (#4317) 2026-07-23 09:42:35 +00:00
Theo BrowneandClaude Fable 5 fbd77420f2 feat: add "Auto" runtime mode — AI-reviewed approvals for Codex and Claude (#4272)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-07-23 02:06:24 -07:00
Theo BrowneandClaude Fable 5 16491a84b9 fix(web): new-thread defaults ignored for remote environments (#4276)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-07-23 02:06:00 -07:00
maria-rcks b44ed835c6 fix(web): sync provider banner dismissal 2026-07-23 01:13:29 -04:00
maria-rcks 9c9916aefe fix(web): address redesign review findings 2026-07-23 01:13:29 -04:00
maria-rcks 936394b6f2 test(desktop): include glass opacity in settings fixture 2026-07-23 01:13:29 -04:00
maria-rcks c38225ef1c style(web): fade settings content beneath navbar 2026-07-23 01:13:29 -04:00
maria-rcks 39cd15b954 test(web): stabilize timeline module setup 2026-07-23 01:13:29 -04:00
maria-rcks 160d97f403 fix(web): honor composer glass opacity 2026-07-23 01:13:29 -04:00