Repository navigation
feat(agents): Codex login and limit states, compaction and connected tools (A3d) - #253
Merged
Merged
Conversation
…tools (A3d) - account/read at the handshake and codexErrorInfo unauthorized end in auth_error with a notice; usageLimitExceeded pauses the bot until the window's resetsAt. - bots.compact works for Codex: thread/compact/start through the wrapper; the compaction turn shows a notice and no turn line. - The owner's connected tools go in the thread's mcp_servers, secrets in place; a third-party tool's name is read from the request's message. Checked with the real codex: compaction through the daemon.
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.
Closes the gaps of the Codex bot that were open after #251, before 0.15.0 is published.
account/readgoes with the handshake; no account, or a turn that endsunauthorized, puts the bot inauth_errorwith a notice to sign in to Codex and restart it.usageLimitExceededputs it inrate_limiteduntil the window'sresetsAt(fromaccount/rateLimits/updated; five minutes without it). Messages wait and go out after the reset, as for Claude.bots.compactworks for Codex: the wrapper sendsthread/compact/start. Codex runs it as a turn with acontextCompactionitem; Botloft shows 'compacting', then the notice, and no turn line. The panel says Codex also compacts by itself.mcp_serverswith their secrets in place (thebotloftserver is never replaced). A third-party tool's name for its approval card is read from the request's message.Real Codex 0.148.0-alpha.9, through the daemon: 17,930 of 258,400 tokens;
bots.compactgave 'compacting', the notice and no turn line, and the bot still remembered the word it was given.Not provoked in the real Codex: signed-out and limit-reached (no safe way); they are covered with the FakeRuntime from the shapes in the app-server schema (
CodexErrorInfo).Tests: four new in
codex_bot.rs(signed out, limit, compaction, connected tools), wire and decoder unit tests, app test for the Codex compact button; fmt, clippy -D warnings,cargo test --workspaceandpnpm checkpass.