GeezerVison is showing github.com — feat(cli): add --background / -b flag to ocx start by flyingsquirrel0419 · Pull Request #27 · lidge-jun/opencodex
Conversation
What this PR does
- Adds
-b / --background option to ocx start
- Runs the proxy as a detached background process so users can close the terminal without killing the server
- Prevents recursive background spawns via
OCX_BACKGROUND_SPAWNED
- Updates CLI help text, README files (EN/KO/ZH), and docs-site CLI reference
- Adds tests for the new flag
Use case
Useful on remote Linux servers where users want the proxy to keep running after disconnecting SSH, without setting up a full systemd service.
Example
ocx start -b
ocx start --port 8080 --background
Checklist
- Type check passes
- All tests pass
- Manually verified: detached process runs and survives terminal close
-
ocx stop still stops the background proxy correctly
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Runs the proxy as a detached child process so the terminal can be
closed without killing the server. Uses OCX_BACKGROUND_SPAWNED to
prevent recursive spawns. Updates CLI help, READMEs, docs-site CLI
reference, and adds tests.
|
Thanks for the PR. Closing this as a docs/UX decision rather than merging it.
The user-facing goal of ocx start --background overlaps with the existing lifecycle surfaces:
ocx service install already provides the always-on background mode through launchd/systemd/Task Scheduler, including login start, crash restart, and stop/uninstall integration.
ocx codex-shim install already provides the lightweight on-demand mode by running ocx ensure before ordinary codex commands.
ocx ensure already starts the proxy as a detached child when needed.
Adding a third ocx start -b path would make the startup model harder to explain and would blur the product boundary between service mode and shim/on-demand mode. The current PR also only tests CLI help text, not detached lifecycle behavior such as PID ownership, terminal-close survival, and ocx stop cleanup.
If we later decide that a one-shot detached start is still needed for remote SSH/server workflows, it should come back as a more explicit expert feature, documented separately from service/shim and covered by lifecycle tests. For now, service + shim are the intended supported UX.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
wxj123654
added a commit
to wxj123654/opencodex
that referenced
this pull request
Sep 16, 2026
…reasoning replay
A bundle of live-calibrated fixes for the Cascade wire:
- session-identity.ts: stable per-conversation ids (lidge-jun#16 cascadeId,
lidge-jun#15 model config id + monotonic turn counter, lidge-jun#22 exchange id rotated
per user exchange and absent on the first turn) so a long agent loop
no longer reads as N brand-new sessions to the velocity limiter
- loop-fuse.ts: conversation-scoped step budget modeled on the language
server's own mechanism — steer on empty turns, fail closed at the cap
- images.ts: normalize replayed images under the upstream ~14MB nginx
body cap so one oversized screenshot cannot 413 every later turn
- proto.ts: ASSISTANT source value, ModelConfig (lidge-jun#15), prompt_cache_key
(lidge-jun#27), and a 413 error that names the real cause
- client.ts: 300s upstream idle budget matching the turn budget, and an
abort-raced read so a silent stream still trips the idle path
- chat/inbound.ts: replay assistant reasoning_content as a reasoning
item before the message so downstream providers see the thinking the
model actually produced
- tests: session identity, loop fuse, images, proto, and inbound
reasoning-replay coverage; layout maps registered
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|