Skip to content

feat: support per-run reasoning and HTTP headers - #23

Merged
wowi42 merged 5 commits into
mainfrom
feat/cli-thinking-headers
Sep 29, 2026
Merged

wowi42 merged 5 commits into
mainfrom
feat/cli-thinking-headers

Conversation

@Mouhand-Kaddo

@Mouhand-Kaddo Mouhand-Kaddo commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Add per-run --thinking none|low|medium|high and repeatable --header 'Name: value' across interactive, resumed, headless, loop, and chain modes. Headers apply to chat and catalog requests without being persisted. Header merging remains case-insensitive; validation rejects invalid values without echoing them, and existing authentication precedence is preserved.

Stack integration updates the session-name test to patch its lazy import location, preserving #22's startup memory improvement. The combined regression suite covers reasoning overrides in text and JSON mode.

Tracks LaFabrique #48.

Stack and validation

#23 → #24 → #25 → #26

Native GitHub stack #28. This PR targets main. PR #22 is merged.

Merged main at 74a5e28 into the stack, retaining merged PR #22’s memory improvements and PR #27’s removal of automatic Exa/Context7 servers. Each updated branch retains its previous remote head and preceding stack layer through additive merges. Configured MCP servers remain supported.

Repaired the session-name mock at its lazy import location, used schema version 2 in non-persistence fixtures, and removed obsolete MCP flag assignments from the memory regression harness. All existing behavioral assertions are retained. Provider codes remain 4–9; context overflow, local cost limit/unknown spend, and execution timeout remain 10/11/12. The existing memory and usage-accounting implementation is unchanged.

Ruff lint and formatting pass; all 2,007 local tests pass on Linux/Python 3.14.3. All four Linux/macOS Python 3.13/3.14 CI jobs pass on a61073a.

@Mouhand-Kaddo
Mouhand-Kaddo changed the base branch from main to perf/reduce-headless-memory September 29, 2026 08:24
@Mouhand-Kaddo
Mouhand-Kaddo added this pull request to stack #28 September 29, 2026 08:24
Base automatically changed from perf/reduce-headless-memory to main September 29, 2026 09:37
Strip ANSI styling before matching option names, using the existing help-test pattern so CI preserves the same validation assertions.
@wowi42
wowi42 force-pushed the feat/cli-thinking-headers branch from f9f9a48 to c5f1a19 Compare September 29, 2026 09:37
@wowi42
wowi42 merged commit da826b6 into main Sep 29, 2026
4 checks passed
@wowi42
wowi42 deleted the feat/cli-thinking-headers branch September 29, 2026 10:56
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.

2 participants