Skip to content

fix: unify model picker background updates and model context display#77

Open
k99k5 wants to merge 2 commits intoKuberwastaken:mainfrom
k99k5:fix-app-background-task
Open

fix: unify model picker background updates and model context display#77
k99k5 wants to merge 2 commits intoKuberwastaken:mainfrom
k99k5:fix-app-background-task

Conversation

@k99k5
Copy link
Copy Markdown

@k99k5 k99k5 commented Apr 9, 2026

Summary

  • move model picker background update handling into the actual CLI main loop
  • remove duplicate model/task background handling from App::run
  • add shared context window formatting and improve OpenAI/OpenAI-compatible/Codex model window mappings

Why

The interactive runtime is driven by src-rust/crates/cli/src/main.rs, while some model picker background update logic still lived in
src-rust/crates/tui/src/app.rs::run(). That duplication made the ownership of runtime UI updates unclear and left dead-path behavior in the
codebase.

This change makes the real loop responsible for model picker background updates, removes the duplicated branch in App::run(), and improves model
context window presentation so the picker shows more consistent and less misleading values.

k99k5 and others added 2 commits April 9, 2026 14:03
Keep provider model-list fetching, notification ticking, cost/token sync, and task overlay refresh in the actual CLI main loop while removing the duplicate dead-path logic from App::run().

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@AdamBajger
Copy link
Copy Markdown
Contributor

@k99k5 could you please resolve the merge conflicts? This looks like a nice, simple codebase cleanup.

@k99k5
Copy link
Copy Markdown
Author

k99k5 commented Apr 12, 2026 via email

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