Skip to content

fix(desktop): restore archived session lifecycle authority - #1174

Merged
Astro-Han merged 1 commit into
apache:mainfrom
Nyvo-io:codex/fix-1161-session-lifecycle
Jul 17, 2026
Merged

Astro-Han merged 1 commit into
apache:mainfrom
Nyvo-io:codex/fix-1161-session-lifecycle

Conversation

@Nyvo-io

@Nyvo-io Nyvo-io commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #1161.

  • Make persisted archived and missing session state authoritative before ordinary Desktop sends, workspace/connection recovery, attachment ingestion, Runtime send, or Goal registration.
  • Keep lifecycle failures out of the NO_REAL_CONNECTION blocked-state path.
  • Invalidate bot conversation bindings after successful archive/remove and rebind stale bot conversations to a fresh session on the next message.
  • Map archived and removed OpenGateway send targets to stable 409/404 lifecycle responses.
  • Keep the Goal close fence and existing stale Goal protections intact.

Verification

  • npm run lint
  • npm run typecheck
  • npm --workspace @maka/desktop test
  • Desktop tests: 2,665 passed, 0 failed
  • Focused lifecycle, bot rebinding, source-contract, and OpenGateway tests passed
  • git diff --check

The independent Codex review command could not complete because the configured review provider returned 401 INVALID_API_KEY; the implementation was manually reviewed against the issue acceptance conditions and existing call sites.

@Astro-Han Astro-Han left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Astro-Han
Astro-Han merged commit b9bf346 into apache:main Jul 17, 2026
3 checks passed
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.

fix(desktop): archived sessions leave bot and gateway bindings in an inconsistent send state

2 participants