Skip to content

fix(web): restore thread-header AI usage + host resource gauges - #208

Merged
omegent-app[bot] merged 2 commits into
fork/changesfrom
t3code/restore-usage-and-remote-metrics
Jul 30, 2026
Merged

fix(web): restore thread-header AI usage + host resource gauges#208
omegent-app[bot] merged 2 commits into
fork/changesfrom
t3code/restore-usage-and-remote-metrics

Conversation

@omegent-app

@omegent-app omegent-app Bot commented Jul 30, 2026

Copy link
Copy Markdown

Summary

  • Restore conversation-level AI usage status (dot + AiUsageStats tooltip) in the thread header next to the title.
  • Restore remote/local host CPU / memory / load gauges (HostResourceStatus) in the thread header.
  • Re-wire ChatView to pass activeThreadDriverKind, activeThreadModel, and isPreparingWorktree.
  • Add anti-stack-drop existence tests so helpers alone cannot stay green while the header JSX is missing.

Root cause

The stack product rejoin (feat(web): sidebar lists, composer, timeline, and chrome fork product / 8ac8ce739) re-landed:

  • pure AI-usage presentation helpers
  • HostResourceStatus component
  • settings-only host resource UI
  • model-picker usage dots/stats wiring

…but never re-attached HostResourceStatus or the conversation-level usage marker to ChatHeader. That is a classic fork stack conflict / provenance rewrite failure mode (same class as #154 remote Open in VS Code): helpers and settings survived; thread chrome did not.

Provider-icon dots and model-picker selection-box stats were still present in code; they only appear when the ai-usage daemon feed has items (and warn/critical/outlook markers for dots). The missing thread-top CPU/MEM/Load and conversation usage status were pure wiring drops.

Test plan

  • vp test run ChatHeader + forkSurfaceExistence + aiUsage + hostResourcePresentation
  • vp check
  • full monorepo typecheck
  • Open a thread and confirm header shows CPU/MEM/Load when environment is connected
  • Confirm usage status dot + hover stats when provider usage is elevated
  • Confirm model picker still shows provider usage dots and footer stats when daemon is available

omegent-app Bot added 2 commits July 30, 2026 10:58
Stack product rejoin re-landed HostResourceStatus and ai-usage helpers but
dropped the ChatHeader wiring, so conversation-level usage dots and remote
CPU/MEM/Load disappeared while settings still showed host metrics. Re-wire
both surfaces and add anti-stack-drop existence tests.
Classic sidebar already rendered provider usage markers on thread rows;
Threads V2 only showed the provider icon. Wire the same ai-usage snapshot
+ statusDot markers (and tooltip stats) so both list modes stay parity.
@omegent-app
omegent-app Bot merged commit b5cb7d4 into fork/changes Jul 30, 2026
10 checks passed
patroza pushed a commit that referenced this pull request Jul 30, 2026
Restore conversation-level AI usage status and host CPU/MEM/Load in ChatHeader,
add usage dots to Sidebar V2 thread rows (classic sidebar already had them),
and add anti-stack-drop existence tests so these surfaces cannot vanish on
product rejoin.
patroza pushed a commit that referenced this pull request Jul 30, 2026
Restore conversation-level AI usage status and host CPU/MEM/Load in ChatHeader,
add usage dots to Sidebar V2 thread rows (classic sidebar already had them),
and add anti-stack-drop existence tests so these surfaces cannot vanish on
product rejoin.
patroza pushed a commit that referenced this pull request Jul 31, 2026
Restore conversation-level AI usage status and host CPU/MEM/Load in ChatHeader,
add usage dots to Sidebar V2 thread rows (classic sidebar already had them),
and add anti-stack-drop existence tests so these surfaces cannot vanish on
product rejoin.
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.

0 participants