Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .lattice/events/_lifecycle.jsonl
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@
{"actor":"agent:claude-opus-4-7","data":{"description":"Themed bundle of 8 small upstream cmux issues affecting input handling. Picks: #3061, #1456, #3096, #3069, #1469, #1153, #2105, #2949. Reporters to credit: @wada811, @DaikiHayata, @tmad4000, @jewel-sallylab, @alceal, @sldx, @freshtonic, @shaun0927. Plus related-issue reporters whose duplicates close with the same fix: @AndreySoloviev (#2756), @pankrusheff (#2891). Full rationale + per-pick credits in task note.","priority":"medium","short_id":"C11-21","status":"backlog","tags":["upstream-pull","cmux-upstream","attribution-required"],"title":"Upstream pull: Input handling \u2014 keyboard, IME, paste, clipboard, signals (8 picks)","type":"task"},"id":"ev_01KQ3Z8Q2SVX1W80JNWAA0709V","schema_version":1,"task_id":"task_01KQ3Z8Q2RGESKNWZE0N76GB75","ts":"2026-04-26T04:02:53Z","type":"task_created"}
{"actor":"agent:claude-opus-4-7","data":{"description":"Themed bundle of 10 small upstream cmux issues covering stability, rendering, theme, crashes, perf, config parsers, and infrastructure. Picks: #3162, #2950, #1764, #3075, #2922, #1036, #2738, #2996, #2997, #2708. Reporters to credit: @knight42, @shaun0927, @gilsiun, @zacharygutt, @Corey-T1000, @austinywang, @tmad4000, @lawrencecchen, @Thinkscape, @exlaw. Plus related-issue reporter whose duplicate closes with the same fix: @tuzisang (#2718). Full rationale + per-pick credits in task note.","priority":"medium","short_id":"C11-22","status":"backlog","tags":["upstream-pull","cmux-upstream","attribution-required"],"title":"Upstream pull: Stability \u2014 render, theme, crashes, perf, config, infra (10 picks)","type":"task"},"id":"ev_01KQ3Z8Q5P1M1SK7H971ZG2XZ5","schema_version":1,"task_id":"task_01KQ3Z8Q5N35SSSM50M23V77D8","ts":"2026-04-26T04:02:53Z","type":"task_created"}
{"actor":"agent:claude-opus-4-7","data":{"description":"Cherry-pick candidate: open PR #2827 in upstream parent project manaflow-ai/cmux by @tranquillum (sole author). Adds an AI Usage Monitoring panel in the sidebar footer that tracks Claude.ai and Codex/ChatGPT subscription rate limits (5-hour and weekly windows), supports multiple accounts per provider, stores credentials in macOS Keychain only, integrates provider status pages, and ships a generic UsageProvider abstraction so new providers can be added without touching UI. Diff: +15055 -155 across 37 files (note: 10278 of those lines are localization xcstrings additions for new English strings). Tests included (cmuxTests/ProviderTests.swift). PR state: OPEN, mergeable: CONFLICTING with upstream main as of 2026-04-26. Strategically aligned with c11's mission since operators running many agents at once are the audience that benefits most from per-agent quota visibility. Full integration analysis and recommended cherry-pick path in task note.","priority":"medium","short_id":"C11-23","status":"backlog","tags":["upstream-pull","cmux-upstream","attribution-required","feature"],"title":"Upstream cmux PR: Add AI provider usage monitoring (Claude + Codex, sidebar footer, multi-account)","type":"task"},"id":"ev_01KQ41X24PWQ098JQYSJW645J1","schema_version":1,"task_id":"task_01KQ41X24NZVBSKRMQYP6JKBQA","ts":"2026-04-26T04:48:57Z","type":"task_created"}
{"actor":"agent:claude-opus-4-7-cmux-37-plan","data":{"description":"Extend the `phase1` restart registry shipped in CMUX-37 (PR #79) to cover codex and opencode session resume, mirroring the Claude Code path.\n\n## Why\n\nCMUX-37 closes the workspace persistence story for Claude Code: snapshot captures the session id (via the `Resources/bin/claude` wrapper + `c11 claude-hook session-start`), `c11 restore` plays it back via `cc --resume <session-id>` when `C11_SESSION_RESUME=1`. Codex and opencode users get the layout back but their agent context starts fresh \u2014 a half-finished promise of \"come back to your workspace tomorrow\".\n\n## What ships\n\nOne row per agent in `AgentRestartRegistry`:\n\n- **codex** \u2014 when `terminal_type == \"codex\"` and a session id is in surface metadata, restore via `codex resume <session-id>` (or `--last` when no id is captured but the row matches).\n- **opencode** \u2014 when `terminal_type == \"opencode\"` and a session id is in surface metadata, restore via `opencode -s <session-id>` (or `-c` for continue-last).\n- **kimi** \u2014 same pattern, deferred unless the operator wants it folded in.\n\n## How session ids get captured\n\nUnlike Claude Code, neither codex nor opencode has a SessionStart hook c11 can latch onto cleanly. Two paths, pick one (or both):\n\n1. **Self-report via skill instruction.** The `c11` skill teaches codex/opencode agents to call `c11 set-metadata --key agent.codex.session_id <id>` (or `agent.opencode.session_id`) at startup. Observe-from-outside; no c11-side wrapper. Cheapest, depends on the agent cooperating.\n2. **PATH-scoped wrapper** under `Resources/bin/codex` (and `opencode`), gated on `CMUX_SURFACE_ID` per the c11 \"session-resume wrapper\" exception in the project's CLAUDE.md. Captures session id at launch, posts to the c11 socket. Mirror of the cc wrapper. More reliable, more work.\n\nRecommend (1) first; revisit (2) if self-report proves unreliable.\n\n## Acceptance\n\n- `c11 snapshot` on a workspace with a codex pane that has set `agent.codex.session_id` captures the id.\n- `C11_SESSION_RESUME=1 c11 restore <id>` rehydrates the codex pane via `codex resume <session-id>`. Same flow works for opencode.\n- `c11 list-snapshots` and the manifest format from CMUX-37 carry the metadata bit-exact (no schema changes; just additional registry rows).\n- `c11` skill documents how codex/opencode agents self-report session ids.\n\n## Non-goals\n\n- No SessionStart-hook installation into tenant config (`~/.codex/`, etc.). Per the c11 \"Unopinionated about the terminal\" principle.\n- No replacement of the `phase1` registry concept; this just adds rows.\n- No retroactive capture of existing codex/opencode sessions that were started before this lands. Going-forward only.\n\n## Origin\n\nSpun out of CMUX-37 final-push (Plan phase, agent:claude-opus-4-7-cmux-37-plan, 2026-05-03). The original CMUX-37 ticket described this as Phase 5; deferred at delegation time to keep the close-out PR cohesive.","priority":"medium","short_id":"C11-24","status":"backlog","title":"codex + opencode session resume in c11 restart registry","type":"task"},"id":"ev_01KQQM2NT73234NS5GN0BEV0J4","schema_version":1,"task_id":"task_01KQQM2NT5B9FPW5YSC43X9XXB","ts":"2026-05-03T19:12:10Z","type":"task_created"}
10 changes: 10 additions & 0 deletions .lattice/events/task_01KPMTEY4WGECM9MNZ4XARN7Y6.jsonl
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,13 @@
{"actor":"human:atin","data":{"from":"planned","to":"review"},"id":"ev_01KQ3TNBVP86BJ3YS6WMXV5VG0","schema_version":1,"task_id":"task_01KPMTEY4WGECM9MNZ4XARN7Y6","ts":"2026-04-26T02:42:25Z","type":"status_changed"}
{"actor":"human:atin","data":{"artifact_id":"art_01KQ3TNC6JGZ18Z5K8ZPX1VW0F"},"id":"ev_01KQ3TNC6JGZ18Z5K8ZPX1VW0G","schema_version":1,"task_id":"task_01KPMTEY4WGECM9MNZ4XARN7Y6","ts":"2026-04-26T02:42:25Z","type":"artifact_attached"}
{"actor":"human:atin","data":{"body":"Orchestrator hygiene fix: bumping status to review (delegator landed PR #79 with 14 commits across Phases 2-5 plus 12 review-fix commits, but did not advance Lattice status). PR #79 attached. Awaits operator smoke-test of tagged build (c11 DEV cmux-37-remaining.app) and merge."},"id":"ev_01KQ3TNCPB163DSV0R3CQPJ4S2","schema_version":1,"task_id":"task_01KPMTEY4WGECM9MNZ4XARN7Y6","ts":"2026-04-26T02:42:26Z","type":"comment_added"}
{"actor":"agent:claude-opus-4-7-cmux-37","data":{"from":null,"to":"agent:claude-opus-4-7-cmux-37"},"id":"ev_01KQQBGCENETPMXV65R7MXEG1C","schema_version":1,"task_id":"task_01KPMTEY4WGECM9MNZ4XARN7Y6","ts":"2026-05-03T16:42:22Z","type":"assignment_changed"}
{"actor":"agent:claude-opus-4-7-cmux-37","data":{"from":"review","to":"in_planning"},"id":"ev_01KQQBGCEPCNMCAQBA11PX459W","schema_version":1,"task_id":"task_01KPMTEY4WGECM9MNZ4XARN7Y6","ts":"2026-05-03T16:42:22Z","type":"status_changed"}
{"actor":"agent:claude-opus-4-7-cmux-37","data":{"body":"Delegator online (agent:claude-opus-4-7-cmux-37, surface:52). Plan phase starting next in sibling surface. Goal: close CMUX-37 by landing markdown blueprints + snapshot manifest layer + restore-noise downgrade + workspace --help routing fix + CLI socket safety in one cohesive PR. Smoke report at /tmp/cmux-37-smoke-report.md is the ground truth for what's missing."},"id":"ev_01KQQBGKFJV65XJ4YRNBARMFPV","schema_version":1,"task_id":"task_01KPMTEY4WGECM9MNZ4XARN7Y6","ts":"2026-05-03T16:42:29Z","type":"comment_added"}
{"actor":"agent:claude-opus-4-7-cmux-37","data":{"body":"Orchestration restarted (prior run interrupted before Plan sub-agent produced output). Orchestrator: surface:16. Delegator: pane:16 / surface:31. Worktree: c11-worktrees/cmux-37-final-push (branch cmux-37/final-push). Plan file at .lattice/plans/task_01KPMTEY4WGECM9MNZ4XARN7Y6.md now leads with a Final-Push Plan section covering 5 workstreams (Markdown blueprints, snapshot manifest layer, restore diagnostic cleanup, workspace --help routing, C11_SOCKET safety). Older Phase 0/1 plans below it labeled Historical (shipped). Delegator will spawn Plan/Impl/Review/Validate siblings as new tabs in pane:16."},"id":"ev_01KQQK1RYNYK4PB7FWDRABF3BC","schema_version":1,"task_id":"task_01KPMTEY4WGECM9MNZ4XARN7Y6","ts":"2026-05-03T18:54:11Z","type":"comment_added"}
{"actor":"agent:claude-opus-4-7-cmux-37","data":{"body":"Delegator online in surface:31. Plan committed (orchestrator-drafted Final-Push Plan covers all 5 workstreams). Plan-validation sibling launching next to survey actual code (PR #79 implementation) and confirm parallelization/commit grouping. Goal: close CMUX-37 by landing markdown blueprints + snapshot manifest layer + restore noise + workspace --help + CLI socket safety in one cohesive PR off cmux-37/final-push."},"id":"ev_01KQQK5JKPT5Z8NF4JAW2HDJND","schema_version":1,"task_id":"task_01KPMTEY4WGECM9MNZ4XARN7Y6","ts":"2026-05-03T18:56:16Z","type":"comment_added"}
{"actor":"agent:claude-opus-4-7-cmux-37-plan","data":{"body":"Plan written by agent:claude-opus-4-7-cmux-37-plan to .lattice/plans/task_01KPMTEY4WGECM9MNZ4XARN7Y6.md.\n\nSummary:\n- Scope: markdown blueprint format (.md + YAML frontmatter, .config/c11/ rename with JSON back-compat), snapshot-set manifest layer (--all writes pointer file + polymorphic restore), restore-diagnostic reclassification (capture-side + apply-side fix for the 7 spurious failures), workspace --help routing fix, C11_SOCKET env var precedence + auto-discovery stderr breadcrumb.\n- Recommended commit grouping: 8 commits \u2014 workspace help routing \u2192 C11_SOCKET + log \u2192 executor diagnostics \u2192 capture title strip \u2192 markdown parser/writer \u2192 blueprint dir rename + .md default \u2192 snapshot manifest + restore polymorphism \u2192 ticket title/description housekeeping.\n- Parallelization: two parallel impl siblings \u2014 A handles workstreams 1+2 (markdown + manifest, the bulk; mostly new files), B handles 3+4+5 (small surgical edits on diagnostics, help dispatch, socket resolution). Disjoint regions in CLI/c11.swift; no merge conflicts expected. Recommend B lands first since the C11_SOCKET fix prevents wrong-socket footguns during subsequent validation.\n- Localization: yes, ~5 new String(localized:) keys (markdown parse error messages + auto-discovery line). Translator phase fans out per-locale across ja/uk/ko/zh-Hans/zh-Hant/ru. Help text bodies stay plain English to match the existing subcommandUsage precedent.\n- Out-of-scope (DO NOT ship in this PR): CMUX_SOCKET_PATH deprecation warning, codex/opencode/kimi restart-registry rows, mailbox topic fan-out, JSON blueprint reader removal, typing-latency hot-path edits, persistent writes to tenant config, public cmux CLI alias rename, submodule edits.\n\nPlan ready for delegator review and Impl phase launch."},"id":"ev_01KQQKN6CYAQ0QNVWYXTKNN3PD","schema_version":1,"task_id":"task_01KPMTEY4WGECM9MNZ4XARN7Y6","ts":"2026-05-03T19:04:48Z","type":"comment_added"}
{"actor":"agent:claude-opus-4-7-cmux-37","data":{"from":"in_planning","to":"planned"},"id":"ev_01KQQKVYB5J3MZECV6YMRQYZGA","schema_version":1,"task_id":"task_01KPMTEY4WGECM9MNZ4XARN7Y6","ts":"2026-05-03T19:08:29Z","type":"status_changed"}
{"actor":"agent:claude-opus-4-7-cmux-37","data":{"from":"planned","to":"in_progress"},"id":"ev_01KQQKWC42P36ZGVH6249B3ABS","schema_version":1,"task_id":"task_01KPMTEY4WGECM9MNZ4XARN7Y6","ts":"2026-05-03T19:08:43Z","type":"status_changed"}
{"actor":"agent:claude-opus-4-7-cmux-37","data":{"body":"Plan validated; status bumped planned \u2192 in_progress. Plan recommends two impl siblings serialized in worktree:\n- Sibling B (next, lands commits 1-4): workstream 4 (workspace --help routing), workstream 5 (C11_SOCKET safety + auto-discovery breadcrumb), workstream 3 (executor diagnostic reclassification + capture-side title strip).\n- Sibling A (follows B, lands commits 5-7): workstream 1 (markdown blueprint format) + workstream 2 (snapshot manifest layer).\n- Commit 8 (housekeeping: rename ticket title c11mux\u2192c11, strip stale plan-freshness warning) handled by delegator post-impl, pre-PR.\nB-first order makes subsequent validation safer (C11_SOCKET fix lands early; smoke build can use the env var instead of explicit --socket). Spawning B now."},"id":"ev_01KQQKWR4VP4G1BTHQGAMATRAP","schema_version":1,"task_id":"task_01KPMTEY4WGECM9MNZ4XARN7Y6","ts":"2026-05-03T19:08:55Z","type":"comment_added"}
{"actor":"agent:claude-opus-4-7-cmux-37-plan","data":{"body":"Spun out C11-24 ('codex + opencode session resume in c11 restart registry') for the deferred Phase 5 work \u2014 the registry primitive lands in this PR via the cc row; codex/opencode are additive rows + a skill update, no schema change. Keeps the final-push PR cohesive."},"id":"ev_01KQQM2SVHDTWDDJP76REQRYS1","schema_version":1,"task_id":"task_01KPMTEY4WGECM9MNZ4XARN7Y6","ts":"2026-05-03T19:12:14Z","type":"comment_added"}
Loading
Loading