Skip to content

Let hosted OX sessions message local peers - #351

Merged
n0rpan merged 3 commits into
mainfrom
host/session-messaging
Dec 3, 2026
Merged

n0rpan merged 3 commits into
mainfrom
host/session-messaging

Conversation

@n0rpan

@n0rpan n0rpan commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #348.

Codex and Claude Code sessions on the same OX host can find peers with list_ox_sessions and exchange messages with message_ox_session. The local owner can send with ox send <thread> "text".

The host reuses the durable worker notice delivery path. Busy receivers take the message at a turn boundary and idle receivers wake. Messages carry the sender's identity and peer context. The host defaults to 8 KiB per message, four messages per pair and 64 across the host per minute, and a bounded pending queue. The host owner can configure the byte limit and disable the rate and queue limits. A peer wake starts a fresh execution budget for a worker. OX Desktop and mobile show the sender label and recent outgoing messages.

Verification

  • Checked against main at 51a337a58b79072d7ed4c48cb8f341e4a4da6c54.

  • Root formatting, Clippy and full test suite. The passing run used a PATH with one installation of each stock client. With duplicate local launchers the two setup doctor tests returned status 1 for duplicate-install warnings. An earlier run hit ETXTBSY at the updater's staged executable startup probe.

  • Host, core and mobile tests, including a busy Claude receiver, an idle Codex reply, permission modes and preservation of an unfinished draft.

  • Desktop check and native Clippy with Rust 1.100.0, iOS simulator target check, protocol generation check, Android target check, browser JavaScript syntax and message rendering parser, CLI protocol smoke test, shell lint and 54 CI Python tests.

  • Rate override and Android reader review fixes verified with host-service, host and mobile tests, native Clippy, and the full CLI suite. The CLI suite used disk-backed temporary storage after the installer fixture filled the local tmpfs.

  • The exchange fixture also checks that a worker with an old deadline receives a fresh run budget when a peer wakes it.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T11:57:23.429782Z b615399 Draft marked ready
🔒 Security Review ✅ Completed 2026-12-03T12:00:59.758815Z b615399 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 22ba3bc96a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 40960f211d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/ox-host/src/engine/notices.rs Resolved
@n0rpan n0rpan added the full-ci label Dec 3, 2026
@n0rpan
n0rpan marked this pull request as draft December 3, 2026 11:54
@n0rpan
n0rpan marked this pull request as ready for review December 3, 2026 11:54
@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

/queue b615399

@n0rpan

n0rpan commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator Author

In line to merge. Commit b615399 is reviewed with nothing blocking; it has entered the merge queue.

@n0rpan
n0rpan added this pull request to the merge queue Dec 3, 2026
@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

The latest merge-group macOS package job timed out contacting registry.npmjs.org in the stock Claude CLI and workbench step (EIDLETIMEOUT). The packaged native tests immediately before that install passed, and the preceding merge group passed. The queue will need a fresh run of the affected candidate. https://github.com/oxstack/ox/actions/runs/47112772038/job/144275740430

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 3, 2026
@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

/queue b615399

@n0rpan
n0rpan added this pull request to the merge queue Dec 3, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 3, 2026
@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

The replacement merge candidate hit a separate Ubuntu Snapshot failure. Both ARM jobs stopped during dependency setup with HTTP 502/503 from the signed Ubuntu index mirror. I’m retrying the failed jobs on the existing candidate. #386 adds a bounded fallback for future runs. https://github.com/oxstack/ox/actions/runs/47127441290

@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

/queue b615399

@n0rpan
n0rpan added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit 805f7de Dec 3, 2026
44 of 64 checks passed
@n0rpan
n0rpan deleted the host/session-messaging branch December 3, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agents in OX-hosted sessions cannot message each other

1 participant