Skip to content

fix(desktop): recover owned agent once - #725

Merged
tallcode merged 1 commit into
mainfrom
codex/agent-self-recovery
Sep 18, 2026
Merged

tallcode merged 1 commit into
mainfrom
codex/agent-self-recovery

Conversation

@tallcode

Copy link
Copy Markdown
Collaborator

Summary

  • retry a failed Desktop-owned Agent once after a one-second grace period
  • keep external Agent attachments observation-only; they are never killed or restarted
  • retain a recovering startup state through replacement and guard child-exit races with generations

Validation

  • npm run lint (desktop)
  • npm test -- --run src/components/layout/AgentStatusGate.test.tsx src/components/layout/hooks/useAgentStatus.test.ts (9 tests)
  • cargo fmt --check --manifest-path desktop/src-tauri/Cargo.toml
  • cargo clippy --all-targets --manifest-path desktop/src-tauri/Cargo.toml -- -D warnings
  • targeted Agent supervisor tests (29 tests)
  • targeted Agent version-compatibility test
  • git diff --check

Note: the full desktop Rust lib run had 1 pre-existing/concurrent remote-state test failure (1287 passed, 1 failed); that exact test passed when rerun in isolation.

@tallcode
tallcode enabled auto-merge (squash) September 18, 2026 09:06
@tallcode
tallcode merged commit d39f415 into main Sep 18, 2026
12 checks passed
@tallcode
tallcode deleted the codex/agent-self-recovery branch September 18, 2026 09:14
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