Repository navigation
feat(ui): restore failover binding coverage - #80
Conversation
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThe PR introduces a new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Pull request overview
This PR restores clearer cloud execution-binding failure signaling and reintroduces regression coverage around session failover/runtime rebuild behavior, ensuring session creation and persisted state recovery remain consistent on the rebased main branch.
Changes:
- Introduce a typed
CloudBindingNotImplementedErrorfor cloud workspace resolution/tool-config paths. - Add/restore tests covering failover rebuild from persisted tape without resuming live local runtime state.
- Add HTTP API tests asserting
/sessionsstores aLocalExecutionBindingwith the correct resolved workspace root (cwd vsrepo_path).
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| coding-agent/src/coding_agent/ui/binding_resolver.py | Adds typed cloud-binding “not implemented” exception and raises it for cloud bindings. |
| coding-agent/tests/ui/test_execution_binding.py | Updates resolver tests to assert the new typed exception for cloud binding paths. |
| coding-agent/tests/ui/test_session_manager_runtime.py | Restores/extends failover coverage ensuring persisted sessions rebuild runtime from tape without reviving transient runtime state. |
| coding-agent/tests/ui/test_http_server.py | Adds coverage that session creation persists a default/local execution binding aligned to cwd or provided repo_path. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
origin/mainso the PR only contains the remaining B-scope delta.Verification
uv run pytest tests/ui/test_execution_binding.py tests/ui/test_http_server.py tests/ui/test_session_manager_runtime.py -k \"cloud or create_session_stores_local_binding or failover_rebuilds_from_persisted_state_without_resuming_local_runtime\" -vlsp_diagnosticson all four changed files returned no errorsSummary by CodeRabbit
Release Notes
Bug Fixes
Improvements