Skip to content

fix(session): preserve queue and terminal finality - #566

Merged
Harry19081 merged 4 commits into
developfrom
junyu/session-finality-reconciliation
Jul 30, 2026
Merged

fix(session): preserve queue and terminal finality#566
Harry19081 merged 4 commits into
developfrom
junyu/session-finality-reconciliation

Conversation

@beruro

@beruro beruro commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • persist queued messages and direct-user-intervention state across reloads
  • preserve intent IDs through Rust-agent and CLI terminal events
  • coalesce high-frequency streaming state edges without changing final event order
  • fence stale queue dispatches, canvas/session switches, and fork terminal handling

Stack

Depends on the CLI lifecycle slice (#565), which depends on #512. This PR intentionally excludes chat-rendering experiments that were reverted in the original clean branch.

Validation

  • 10 targeted Vitest files: 61 passed
  • pnpm typecheck and changed-file ESLint
  • cargo test -p agent_core lifecycle: 13 passed
  • cargo check -p org2
  • rustfmt check on all changed Rust files
  • git diff --check junyu/cli-runner-intent-propagation...HEAD

State-machine coverage

Queued → running → terminal, direct intervention, reload recovery, reconnect/focus reconciliation, intermediate fork terminal, stale scope, and duplicate finality are all covered.

@beruro
beruro force-pushed the junyu/session-finality-reconciliation branch from 96a80cf to 2712903 Compare July 30, 2026 07:07
@beruro
beruro force-pushed the junyu/cli-runner-intent-propagation branch 2 times, most recently from cac6149 to 952201d Compare July 30, 2026 07:50
@beruro
beruro force-pushed the junyu/session-finality-reconciliation branch from 2712903 to e667029 Compare July 30, 2026 07:50
@beruro
beruro force-pushed the junyu/cli-runner-intent-propagation branch from 952201d to e746dd4 Compare July 30, 2026 08:05
@beruro
beruro force-pushed the junyu/session-finality-reconciliation branch from e667029 to 93e47d1 Compare July 30, 2026 08:05
@beruro
beruro changed the base branch from junyu/cli-runner-intent-propagation to develop July 30, 2026 08:36
@Harry19081
Harry19081 merged commit 75fa07a into develop Jul 30, 2026
1 check passed
@Harry19081
Harry19081 self-requested a review July 30, 2026 08:45
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.

2 participants