Repository navigation
feat(sminos): send reaches a Codex thread through codex's durable queue - #133
Merged
Merged
Conversation
…ueue When no seat and no live harness session matches, a target that is a Codex thread id — or any `codex:<id|exact name>` — is delivered with `codex queue --thread … --message …`. That writes one row to the queue every Codex app-server shares (~/.codex/queue_1.sqlite); the process hosting the thread reads it between turns: at once when idle (its host polls every 10 s), after the current turn when busy, at the next resume when nothing hosts it. Verified live against an interactive TUI in all three states and against the shared app-server daemon; it is the only door into a desktop-app thread, whose app-server is stdio-bound. Because the queue is durable, a Codex target is never refused for not being live, and the report says `queued`, not `sent`. Bare names are not tried: codex resolves an id in a second but pages through the whole thread history for a name (63 s for 7,000 threads, observed), which a mistyped alias must not pay. The skill carries the semantics in one paragraph so a caller plans the round-trip. Version 7.76.0.
This was referenced Oct 25, 2026
SSFSKIM
added a commit
that referenced
this pull request
Oct 25, 2026
devcloud 0.12.0: a headless Chromium and poppler in the image, for the web fetch tool (board #133)
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
sminos sendnow delivers to a Codex thread when no seat and no live harness session matches: a bare Codex thread id, or anycodex:<id|exact name>, goes throughcodex queue --thread … --message ….Why the durable queue. It is the only door into a Codex thread from outside its process. The Codex desktop app runs its own app-server stdio-bound to the Electron host, and its
send_message_to_threadpipe rejects any process it did not spawn (both a hand-rolled client and the app's own bundled MCP shim were dropped). The queue is a SQLite table every Codex app-server shares; the hosting process reads it between turns.Semantics, verified live (interactive TUI in tmux; then the shared app-server daemon):
codex resumeSo
sendnever refuses a Codex target for not being live, and reportsqueued, notsent. The skill carries this in one paragraph so a caller plans the round-trip.Bare names are not tried. codex resolves an id in ~1 s but pages through the whole thread history for a name (63 s for 7,000 threads, observed); a mistyped seat alias must not pay that. Names go through the explicit
codex:<name>.Tests
tests/sminos/run-sminos-tests.sh: acodexstub in its own PATH dir (shadowing any real codex, which would otherwise start an app-server under the test HOME) and 21 new assertions — no-codex machine, unknown id/name, id delivery,codex:<name>, alias-vs-thread-name precedence,--from, unknown-thread exit 4, other codex failures exit 1 with codex's text. All 559 pass.scripts/lint-shell.shclean.Version 7.76.0 in the same commit.