GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(cli): add --background / -b flag to ocx start by flyingsquirrel0419 · Pull Request #27 · lidge-jun/opencodex

Conversation

@flyingsquirrel0419

@flyingsquirrel0419 flyingsquirrel0419 commented Jun 24, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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.

All reactions
@flyingsquirrel0419
feat(cli): add --background / -b flag to ocx start
1bf07e8
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.
@lidge-jun

lidge-jun commented Jun 25, 2026

Copy link
Copy Markdown
Owner

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lidge-jun lidge-jun closed this Jun 25, 2026
@lidge-jun lidge-jun mentioned this pull request Jun 25, 2026
Merge dev multi-auth hardening #28
Merged
@coderabbitai coderabbitai Bot mentioned this pull request Sep 12, 2026
feat(providers): ZCode — Z.ai Start Plan provider (OAuth login, traceless captcha, client attribution) #4437
Closed
4 tasks
wxj123654 added a commit to wxj123654/opencodex that referenced this pull request Sep 16, 2026
@wxj123654
feat(devin-http): conversation identity, loop guard, image prep, and …
a443d5d
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

2 participants

@flyingsquirrel0419 @lidge-jun
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.