feat(cowork): add session bus and Codex handoff lane - #18
Open
nakhunkrit wants to merge 2 commits into
Open
Conversation
=== TEST CAVEAT (read first) ===
- node --check passed on all 5 JS files:
preload.js, server/server.js, server/codex-handoff.js,
server/session-bus.js, renderer/renderer.js
- HTML (renderer/index.html) and CSS (renderer/style.css) are not
Node-executable — node --check does not apply, treated as inert markup.
- No runtime/integration tests run. There is no test suite in this repo
yet. The 'TEST before deploy / before runtime change' rule still holds
in spirit — this commit lives only in local master, NOT pushed.
- Manual smoke (electron start, IPC handshake, inbox toggle) NOT performed
in this session. Must be done before push.
=== Changes ===
- server/session-bus.js (new, 168 lines):
In-process pub/sub channel between Cowork main process and renderer.
Backend for the inbox / lane updates.
- server/codex-handoff.js (new, 194 lines):
Codex handoff lane — accepts task envelopes from the UI and routes them
toward the Codex CLI agent (separate process). Pair with the /codex
slash command template P'Ball defined earlier.
- server/server.js (+173 lines):
Wire session-bus and codex-handoff routes into the Express layer.
- preload.js (+121 lines):
Expose session-bus + handoff IPC channels to the renderer with a
contextBridge-style allowlist.
- renderer/index.html (+15 / -2):
Add inbox panel + toggle button mount points.
- renderer/renderer.js (+492 lines):
Inbox panel rendering, toggle state, subscribe to session-bus events,
send handoff envelopes through preload.
- renderer/style.css (+214 lines):
Inbox + toggle styling (panel layout, badge counts, lane separators).
=== Not pushed ===
Committed locally on master only. Remote
origin/master is github.com/ComposioHQ/open-claude-cowork — awaiting
P'Ball diff approval before any push.
=== Scope clarity ===
This commit has NOTHING to do with App1-MindVerse, oracle-knowledge,
astrology, ธัมมวิโมกข์, or the Zoul work earlier in the session.
That work lives in /Users/nakhunkrit/Documents/New project on the
codex/kammatthana-trance-script branch and is also not pushed.
Author
|
Update: pushed follow-up fix commit Additional validation completed:
Remaining caveat: manual click-through of the rendered inbox/toggle UI still needs human visual confirmation. |
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
/codex ...commandnpm run smoke:cowork-laneValidation
node --checkpassed for changed JS filesnpm run smoke:cowork-lanepassedgit diff --checkpassed before pushCaveat
Safety
server/data/is ignored