Skip to content

Disable Codex Apps in managed remote launches#311

Closed
danshapiro wants to merge 35 commits intomainfrom
codex/window-vs-wsl-codex
Closed

Disable Codex Apps in managed remote launches#311
danshapiro wants to merge 35 commits intomainfrom
codex/window-vs-wsl-codex

Conversation

@danshapiro
Copy link
Copy Markdown
Owner

Summary

  • Disable Codex's built-in Apps feature for Freshell-managed codex app-server sidecars.
  • Apply the same managed config to visible codex --remote Codex panes.
  • Add regression coverage for app-server args, remote launch args, and Codex session flow.

Validation

  • npm run test:vitest -- --config vitest.server.config.ts test/unit/server/coding-cli/codex-app-server/runtime.test.ts test/unit/server/terminal-registry.test.ts test/integration/server/codex-session-flow.test.ts
  • FRESHELL_TEST_SUMMARY=codex-managed-remote-apps npm test
  • Real local smoke: codex -c features.apps=false app-server --listen ws://127.0.0.1:<port> initialized successfully over websocket.

Dan Shapiro added 30 commits April 19, 2026 14:01
# Conflicts:
#	server/coding-cli/codex-app-server/launch-planner.ts
#	test/fixtures/coding-cli/codex-app-server/fake-app-server.mjs
#	test/integration/server/codex-session-flow.test.ts
#	test/unit/server/coding-cli/codex-app-server/launch-planner.test.ts
Copy link
Copy Markdown
Owner Author

Closing this PR because it was created against remote main, which is behind the active stacked Freshell branch and made the diff include the earlier stack. The fix has been pushed onto #310 instead.

@danshapiro danshapiro closed this Apr 25, 2026
@danshapiro danshapiro deleted the codex/window-vs-wsl-codex branch April 25, 2026 08:24
Copy link
Copy Markdown

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

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: 6b59ef8b81

ℹ️ 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 on lines +21 to 23
private readonly createSidecar: (input: PlanCreateInput) => Pick<CodexTerminalSidecar, 'ensureReady' | 'attachTerminal' | 'shutdown'>
= (input) => new CodexTerminalSidecar({ cwd: input.cwd }),
) {}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve Codex launch model and sandbox settings

CodexLaunchPlanner.planCreate now builds a sidecar using only cwd, and the model/sandbox/approvalPolicy fields in PlanCreateInput are never applied anywhere in this flow. Before this change, those values were forwarded via startThread; now codex terminals launched through this planner silently ignore configured model/sandbox preferences and always use Codex defaults.

Useful? React with 👍 / 👎.

Comment on lines +274 to +276
try {
process.kill(pid, 'SIGTERM')
} catch (error) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Avoid reaping sidecars owned by other live Freshell instances

reapOrphanedSidecars sends SIGTERM to any process matching a metadata file, but those metadata files are also written for healthy, currently attached sidecars. Because startup unconditionally runs this reaper, bringing up a second Freshell process can kill codex sidecars that are still active in another running instance, dropping live codex sessions unexpectedly.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant