Skip to content

itdove/devaiflow#650: Cancelled first daf open leaves OpenCode session stuck at pending-capture - #652

Merged
itdove merged 1 commit into
mainfrom
650
Oct 28, 2026
Merged

itdove merged 1 commit into
mainfrom
650

Conversation

@itdove

@itdove itdove commented Oct 28, 2026

Copy link
Copy Markdown
Owner

Description

#650: Cancelled first daf open leaves OpenCode session stuck at pending-capture

Changes in this branch:

  • fix(opencode): preserve cancelled setup state for retries

Related issue (if applicable)

Closes #650 (issue)

Type of change

  • Bug fix
  • New feature
  • Security fix or detection change
  • Documentation or workflow change
  • Refactoring or maintenance

Security impact

  • This change has no security impact.
  • This change affects security behavior; describe the threat, protection, and user-visible behavior below.

No security behavior change was identified from the session context.

Testing

  • Tests added or updated where needed.
  • Related tests pass locally. (test results not captured in session context)
  • Manual verification completed, if applicable. (manual verification not captured in session context)

Evidence from session context:

  • Test files changed: tests/test_clone_lifecycle.py, tests/test_opencode_capture_budget.py, tests/test_opencode_open_initialization.py
  • Test command results were not captured in the session metadata.

Commands run

No command evidence was captured in the session context.

Checklist

  • The change is limited to this PR's purpose.
  • Documentation is updated where needed.
  • CHANGELOG.md is updated for notable changes, or no update is needed.
  • Backward compatibility was considered for the public SDK and configuration. (not independently verified in session context)
  • New dependencies have compatible licenses, if applicable. (no new dependencies identified)
  • UX contract tests are included when user-visible security behavior changes. (not applicable to this change)

- Persist never-launched provenance before native session creation
- Preserve workspace, repository, and existing identity metadata across retries
- Support explicit archived restart for legacy pending sessions
- Add launch-ordering and retry regression coverage

🤖 Generated with [OpenCode](https://opencode.ai)

Co-Authored-By: OpenCode <noreply@opencode.ai>
@itdove
itdove marked this pull request as ready for review October 28, 2026 13:43
@itdove
itdove merged commit 4df0ee7 into main Oct 28, 2026
11 checks passed
@itdove
itdove deleted the 650 branch October 28, 2026 13:43
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.

Cancelled first daf open leaves OpenCode session stuck at pending-capture

1 participant