Skip to content

feat(codex): support app-server profile configuration - #1193

Draft
mimoren wants to merge 1 commit into
tiann:mainfrom
mimoren:agent/codex-app-server-profile
Draft

mimoren wants to merge 1 commit into
tiann:mainfrom
mimoren:agent/codex-app-server-profile

Conversation

@mimoren

@mimoren mimoren commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

What changed

  • add HAPI_CODEX_PROFILE for Codex app-server sessions
  • launch the remote backend as codex --profile <name> app-server when configured
  • preserve the existing codex app-server behavior when the variable is unset
  • cover both command shapes with focused tests

Why

hapi codex --profile <name> already forwards the profile in local mode, but remote runner sessions use Codex app-server and ignore general Codex CLI arguments. This left runner-managed sessions without a way to select a Codex config profile.

The environment variable gives each runner machine a default profile without extending the hub RPC or session persistence schema.

Validation

  • cd cli && bunx vitest run src/codex/codexAppServerClient.test.ts
  • bun typecheck
  • bun run test:hub
  • bun run test:shared
  • verified the installed Codex CLI accepts codex --profile tapsvc app-server --help

The full CLI suite passed the new test and all Codex/runner coverage, but one existing Kimi config test read the operator's legacy ~/.kimi/config.toml and failed its "nothing configured" assertion. The web suite had one unrelated jsdom StorageEvent.storageArea type failure; 1,413 other web tests passed.

@mimoren
mimoren force-pushed the agent/codex-app-server-profile branch 7 times, most recently from 7aa34bc to a524dcb Compare August 2, 2026 20:00
@mimoren
mimoren force-pushed the agent/codex-app-server-profile branch 5 times, most recently from 59377c4 to 636b121 Compare August 7, 2026 20:00
- 新增 HAPI_CODEX_PROFILE 环境变量并在 app-server 启动时透传给 Codex
- 保持未配置 profile 时的原有启动行为不变
- 补充默认启动与 tapsvc profile 参数顺序测试
- 验证 Codex 定向用例及全仓类型检查通过
@mimoren
mimoren force-pushed the agent/codex-app-server-profile branch from 636b121 to 999f1d1 Compare August 8, 2026 20:00
@heavygee heavygee added agent:codex Codex flavor area:cli CLI, runner, agent wrappers community-pr PR from non-collaborator contributor enhancement New feature or request labels Sep 4, 2026

This branch has not been deployed

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

Labels

agent:codex Codex flavor area:cli CLI, runner, agent wrappers community-pr PR from non-collaborator contributor enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants