Skip to content

fix: honor plan mode reasoning effort - #504

Open
kocaemre wants to merge 1 commit into
agentclientprotocol:mainfrom
kocaemre:fix/plan-mode-reasoning-effort
Open

kocaemre wants to merge 1 commit into
agentclientprotocol:mainfrom
kocaemre:fix/plan-mode-reasoning-effort

Conversation

@kocaemre

@kocaemre kocaemre commented Sep 12, 2026 •

Copy link
Copy Markdown

Summary

  • Honor the effective plan_mode_reasoning_effort on entering Plan mode, expose the active effort in ACP config options, and restore the ordinary effort on exit.
  • Defer the config read while the app-server is down; apply the requested Plan effort after thread recovery without reading a disposed connection.

Closes #364

Test Plan

  • RED (current main server behavior with this PR's regression test): npm run test -- src/__tests__/CodexACPAgent/session-config-options.test.ts -t 'uses plan_mode_reasoning_effort while Plan mode is active' — failed: sent low instead of configured high.
  • RED (rebased patch before recovery fix): npm run test -- src/__tests__/app-server-recovery/recovery.test.ts -t 'keeps a collaboration mode chosen while the app-server was down' — failed: Connection is disposed on config/read.
  • GREEN: npm run test -- src/__tests__/app-server-recovery/recovery.test.ts src/__tests__/CodexACPAgent/session-config-options.test.ts — 82 passed.
  • GREEN: npm test — 1490 passed, 36 skipped (91 files passed, 7 skipped).
  • npm run typecheck; npm run build; git diff --check upstream/main..HEAD — passed.

Signed-off-by: Emre K <110906681+kocaemre@users.noreply.github.com>
@kocaemre
kocaemre force-pushed the fix/plan-mode-reasoning-effort branch from 9a9992b to 7f1d277 Compare October 10, 2026 17:16

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Respect plan_mode_reasoning_effort in Plan mode

1 participant