Conversation
|
Code Review — Verified Clean ✅ Reviewed the diff (222 lines across 4 files). The change bridges Codex app-server approval prompts through 's per-session queue when no terminal-local callback is available (gateway/cron context). What's good:
No issues found. The approval routing correctly addresses the gateway gap where terminal-local callbacks are unavailable. |
tonydwb
left a comment
There was a problem hiding this comment.
Code Review Summary
Verdict: Approved
Looks Good
- Clean fix: route app-server approvals through the gateway for proper authorization handling.
- Changes are focused on codex_runtime.py and tools/approval.py.
- Good test coverage in test_codex_app_server_integration.py and test_approval.py.
- No security concerns - this improves the security model by routing approvals through the gateway.
Reviewed by Hermes Agent
ba3036a to
48d0272
Compare
|
Rebased on latest upstream main and resolved the conflict in tests/run_agent/test_codex_app_server_integration.py by keeping both the new upstream token-accounting coverage and the gateway approval callback coverage. Updated head: 48d0272970bfa6e3be0ccdf8cfbec402d3d12c23 Validation run locally: The PR is now out of draft and GitHub reports it as mergeable; it appears blocked only on normal review/maintainer requirements. |
48d0272 to
cee68d4
Compare
|
Updated the PR head to the clean rebased commit:
The PR is open, not draft, and GitHub reports it as mergeable. Since the previous approval was attached to an older commit, this should be ready for a fresh maintainer review / merge consideration. |
6eda791 to
eed769b
Compare
|
Follow-up note, no code change needed right now: if another user-visible Telegram response leaks an internal document cache path outside the currently covered |
ffebf9d to
abfc131
Compare
|
Refreshed the PR state against current GitHub now reports:
Local validation on the current head: uv run --extra dev pytest tests/run_agent/test_codex_app_server_integration.py tests/tools/test_approval.py tests/gateway/test_document_context_note.py tests/gateway/test_telegram_group_gating.py -q
# 306 passed in 7.60sThere does not appear to be any remaining code/rebase action needed from the contributor side; this looks ready for maintainer review / merge consideration. |
|
Closing this as superseded by #56534, which has been merged and already references this PR. The gateway-context approval/yolo issue is resolved there. |
Summary
prompt_gateway_approval()as a synchronous bridge onto the existing gateway approval queue.codex_app_serverturns to use that bridge when running inside a gateway session without a CLI approval callback.Why
When Codex app-server requested approval for an exec or file-change action from a Telegram/Gateway session, Hermes had no CLI approval callback to pass into the Codex runtime. The Codex side then failed closed, which surfaced as a rejection even though no Telegram approval buttons were shown to the user.
Validation
Result:
4 passed in 2.39s.