Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Add Codex Desktop spoof toggle and wire provider start options end-to-end#35

Merged
rexlManu merged 1 commit intomainfrom
t3code/settings-codex-desktop-spoof-toggle
Mar 9, 2026
Merged

Add Codex Desktop spoof toggle and wire provider start options end-to-end#35
rexlManu merged 1 commit intomainfrom
t3code/settings-codex-desktop-spoof-toggle

Conversation

@rexlManu
Copy link
Copy Markdown
Owner

@rexlManu rexlManu commented Mar 9, 2026

Summary

  • Adds a new app setting, Spoof Codex Desktop client, to opt into Codex Desktop-style session startup metadata.
  • Extends Codex provider start options with spoofAsCodexDesktop and threads provider options from web composer commands through orchestration to server session startup.
  • Updates Codex app-server initialization to send Desktop client metadata/capabilities and set serviceName: "codex_desktop" when spoofing is enabled.
  • Extracts provider start option schemas into packages/contracts/src/providerOptions.ts and re-exports them for shared contract usage.
  • Adds/updates tests across contracts, server orchestration/adapter/manager, and web app settings to validate schema acceptance and option forwarding.
  • Includes small reliability/type-safety fixes in web sync/chat tests (status: "starting", safer timer/resolve typing, welcome sync flush path).

Testing

  • Not run (in this PR write-up context).
  • Added contract coverage for thread.turn.start and provider session start input parsing with providerOptions.codex.spoofAsCodexDesktop.
  • Added server coverage to verify provider options propagation through ProviderCommandReactor and CodexAdapter into session start payloads.
  • Added manager coverage to verify buildCodexInitializeParams({ spoofAsCodexDesktop: true }) emits Codex Desktop metadata/capabilities.
  • Added web settings coverage to verify provider options are omitted when unset and correctly derived when binary/home path + spoof toggle are enabled.

- add `spoofAsCodexDesktop` in Codex provider start options and shared contracts
- expose a settings toggle in web UI and include provider options in turn-start commands
- apply spoofed initialize metadata/serviceName in server session startup with coverage in tests
@rexlManu rexlManu force-pushed the t3code/settings-codex-desktop-spoof-toggle branch from 0e95f90 to 6f9e60e Compare March 9, 2026 19:53
@rexlManu rexlManu merged commit 19e49bf into main Mar 9, 2026
1 check failed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant