Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

@ammar-agent ammar-agent commented Jan 18, 2026

Summary

  • unify output-reserve indicator logic + copy between sidebar and status button
  • warn when auto-compact threshold exceeds the output reserve
  • surface max output tokens for UI usage and align request defaults to model metadata
  • improve warning contrast in light theme

Why

The UI needs to reflect the real output reserve boundary so users don’t set auto-compact above a hidden output cap and hit context_exceeded first. DRYing the logic keeps the sidebar + status button in sync, and the warning text needed higher contrast in light theme to be readable.

Testing

  • make typecheck
  • make static-check

Generated with mux • Model: openai:gpt-5.2-codex • Thinking: high • Cost: $26.67

@github-actions github-actions bot added the enhancement New feature or functionality label Jan 19, 2026
Copy link

@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: abf6a58230

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@ammar-agent
Copy link
Collaborator Author

@codex review

Resolved review feedback (removed useMemo; avoided prop destructuring).

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Nice work!

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@ammar-agent ammar-agent force-pushed the context-usage-c6p2 branch 2 times, most recently from a48e7bf to 9b93b67 Compare January 20, 2026 16:19
- Remove hardcoded 32000 default in streamManager.ts
- Use model's max_output_tokens from metadata when caller doesn't specify
- If no metadata exists, omit parameter entirely (let provider default)
- Clarify suggestion.ts comment that we use max_input_tokens for comparisons
@ammario ammario merged commit 797c23a into main Jan 21, 2026
21 checks passed
@ammario ammario deleted the context-usage-c6p2 branch January 21, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants