Skip to content

fix: harden matrix launch — tilde expansion, fast-exit detection, daemon tracking#153

Merged
c-h- merged 1 commit intomainfrom
fix/150-151-152-matrix-launch-hardening
Mar 14, 2026
Merged

fix: harden matrix launch — tilde expansion, fast-exit detection, daemon tracking#153
c-h- merged 1 commit intomainfrom
fix/150-151-152-matrix-launch-hardening

Conversation

@c-h-
Copy link
Copy Markdown
Collaborator

@c-h- c-h- commented Mar 14, 2026

Summary

  • expand ~ in matrix launch cwd values before spawning session slots
  • detect fast-exit opencode launches so the adapter reports failure instead of leaving zombie/stopped state drift
  • persist matrix-launched sessions via session.launch.track so daemon/session state stays reconciled

Verification

  • yarn typecheck
  • yarn lint
  • yarn build
  • yarn test

Closes #150
Closes #151
Closes #152

…mon tracking

- Expand ~ in matrix cwd paths before path.resolve (closes #150)
- Detect fast exits (<2s) in opencode wrapper and override exit 0→1,
  catching ProviderModelNotFoundError and similar startup failures (closes #152)
- Add session.launch.track RPC so matrix-launched sessions get locks,
  fuses, and webhooks from the daemon (closes #151)
- Pass pid/model/prompt from orchestrator callback to daemon

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@c-h- c-h- merged commit 9d8708e into main Mar 14, 2026
1 check passed
@c-h- c-h- deleted the fix/150-151-152-matrix-launch-hardening branch March 14, 2026 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant