fix: keep phone Hermes session alive and status readable - #53
Merged
Conversation
🔎 Lint report:
|
| Rule | Count |
|---|---|
invalid-assignment |
1 |
First entries
tui_gateway/server.py:445: [invalid-assignment] invalid-assignment: Invalid subscript assignment with key of type `Literal["usage"]` and value of type `dict[Unknown, Unknown]` on object of type `dict[str, str]`
✅ Fixed issues: none
Unchanged: 4998 pre-existing issues carried over.
Diagnostics are surfaced as warnings — this check never fails the build.
This was referenced May 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ctxno longer stays stuck at zerostall_retryconfig even when the live agent has an empty per-agent retry config, preventing fall-through into stale opencode fallback providersmainVerification
python3 -m pytest tests/agent/test_stall_retry.py -qpython3 -m pytest tests/test_tui_gateway_server.py -q -k "status_callback or get_usage"npm test -- appChromeStatusRule createGatewayEventHandler statusRule statusBarTickernpx eslint src/components/appChrome.tsx src/app/createGatewayEventHandler.ts src/gatewayTypes.ts src/types.ts src/__tests__/appChromeStatusRule.test.tsx src/__tests__/createGatewayEventHandler.test.tsnpm run buildpython3 -m py_compile tui_gateway/server.py agent/conversation_loop.py agent/stall_retry.pyLive taro was patched and restarted. Verification:
stall_retryfrom config and recovered throughqwen3.6-27b-256kon providertaromeshctl.py onboardcompleted and Hermes repliedONBOARD_OKinstead of falling into opencode 401