Skip to content

itdove/devaiflow#699: OpenCode sessions can fail to reopen when session lookup exceeds its 2-second budget - #700

Draft
itdove wants to merge 2 commits into
mainfrom
699
Draft

itdove wants to merge 2 commits into
mainfrom
699

Conversation

@itdove

@itdove itdove commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Description

#699: OpenCode sessions can fail to reopen when session lookup exceeds its 2-second budget

Changes in this branch:

  • fix(agent): bound OpenCode lookup and preserve reopen identity

Related issue (if applicable)

Closes #699 (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.

Security behavior is implicated by the session context; review the threat and user-visible impact before merging.

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_kilo_capture_budget.py, tests/test_opencode_capture_budget.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.

- Extend OpenCode capture and verification to a 10-second budget
- Refuse unverified reopen attempts without replacing saved session identity
- Add recovery guidance and regression coverage for timeout scenarios
- Update documentation and changelog entries

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

Co-Authored-By: OpenCode <noreply@opencode.ai>
- Prefix Kilo session list command with the agent name
- Preserve existing OpenCode guidance behavior

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

Co-Authored-By: OpenCode <noreply@opencode.ai>
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.

OpenCode sessions can fail to reopen when session lookup exceeds its 2-second budget

1 participant