Skip to content

refactor(agent): close multi-conversation run lifecycle - #65

Merged
tallcode merged 2 commits into
mainfrom
codex/multi-conversation-runtime-closure
Jul 29, 2026
Merged

tallcode merged 2 commits into
mainfrom
codex/multi-conversation-runtime-closure

Conversation

@tallcode

Copy link
Copy Markdown
Collaborator

Summary

  • establish canonical run IDs and idempotent request handling across Agent, GUI, TUI, CLI, Channels, and remote control paths
  • centralize authoritative per-session task lifecycle, cancellation, completion, and persistence-degraded states
  • add atomic attach/snapshot/cursor recovery and a bounded lazy persistence writer with explicit failure semantics
  • unify terminal persistence behavior for success, model/tool errors, cancellation, overload, and initial write failure
  • update GUI replica/projection flow and remove legacy dummy message storage

Runtime guarantees

  • a session cannot start a second run while the prior task is active, cancelling, stuck, finalizing, or persistence-degraded
  • terminal events are emitted only after the final in-memory snapshot is committed
  • cancellation and persistence failures remain observable and block unsafe immediate resend
  • reconnect and truncation paths recover from authoritative snapshots and exact run cursors

Validation

  • Agent: 789 tests passed; 9 sandbox-dependent tests ignored as expected
  • GUI Rust: 152 passed, 1 ignored
  • Channels: 126 passed, 2 ignored
  • GUI frontend: 219 passed
  • TUI: 160 passed
  • CLI: 108 passed
  • Agent/GUI/Channels clippy passed
  • ESLint and TypeScript checks passed
  • GUI production build passed
  • full local release build and bundled-agent smoke launch passed
  • signed/notarized macOS Apple Silicon and Intel test artifacts built successfully

Notes

The architecture review plan document is intentionally excluded from this PR.

@tallcode
tallcode merged commit ac451f7 into main Jul 29, 2026
17 checks passed
@tallcode
tallcode deleted the codex/multi-conversation-runtime-closure branch July 29, 2026 09:47
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.

1 participant