Repository navigation
Keep Antigravity model labels current - #46309
brennanb2025 wants to merge 5 commits into
Conversation
Co-authored-by: be0hhh <[email protected]>
|
Performance gate: FAIL at Three source-proven performance regressions block this span. No tests, checks, builds, apps, edits, delegates, or external posts were run.
Remaining path and resource accounting
Ownership and lifecycle review Root/child/unknown classification, explicit-model suppression, automatic-model turn fences, numeric/string step indices, timestamp fallback, truncation/replacement, hook disable/re-enable, spool replay, terminal completion, owner retirement/replacement, and late native completion were traced. Remote envelopes apply model metadata only to the matching accepted owner. Desktop does not reread remote transcripts. Cold-start work adds no subprocesses or heavyweight SDK imports. Foreground exposure consists of the synchronous path in finding 1, event-loop JSON parsing, and renderer work in finding 2. Windows, macOS, Linux, WSL, and SSH ownership paths were inspected in source; none was exercised. Listener census The metadata path bypasses enriched listeners for plugins, statistics, identity capture, title/resume recording, synthetic titles, and first-work actions. It also bypasses row/freshness listeners for worktree rows, transitions, workspace activity, mobile-session republishing, and awake holds. The desktop bridge still publishes to the main renderer and dashboard popout. Renderer inspection covered IPC admission, accepted-status transactions, keyed projections, mobile status publication, attention, Activity, tab activity/identity, pets, palette/send targets, sleep/storage summaries, orchestration, dashboard, and session-history lookups. Plugin inventory is not invoked by the dedicated model-only path; normal hook events retain their existing inventory behavior. Six questions and recurring classes
Touched recurring classes: broad-map selection and collection derivation finding 2; newly reachable gated work and synchronous main filesystem work finding 1; quiet/hidden polling and new idle wakeups finding 3. No-op publication, unchanged-input reads, prefix rescans, queue fanout, entity retention, whole-file persistence, and eager imports were reviewed with the bounds above. Pre-existing concerns remain separately identified: provenance reads with an already valid conversation ID are synchronous, and the plugin forwarder’s normal-hook pending queue can grow behind a stalled terminal inventory. The dedicated model path does not add plugin queue entries. All changed test assertions were inspected only. They cover useful ownership, history, queue, replay, and selected publication contracts, but establish no execution result or runtime timing/CPU/heap evidence here. Benchmark: head=458a6bfca7c4a446d42bb715860b9de1fec59d5b gate=FAIL —81 selected cases/13 files passed; the remaining full-listener and provenance workloads are not validated as passing. No runtime CPU/timing/heap claim. |
ELI5
The sidebar could keep an older model label after a new turn. It now shows the model reported for the current turn and preserves an explicit selection.
What Changed
Resolve the accepted root row from incremental transcript reads with turn and owner fences. Share bounded read scheduling on main and relay, stop obsolete reads, resume after spool replay and hook re-enable, and skip plugin terminal inventory for model-only changes when the visible event facts are unchanged.
Why
The sidebar should identify the model doing the work without stale reads changing another turn or pane.
Linked Issue
Tracked in #43692. Independent prerequisite for #45054; carries community work with contributor credit.
Visual Proof
Current-head real-agent screenshots are pending.
Testing
Published head
458a6bfca7c4a446d42bb715860b9de1fec59d5bpassed 81 selected cases in 13 files. A newer local repair draft,2d20fc98725c89aad06c08c0aa6fa0990a346c41, passed 103 selected cases in 14 files; that repair is not yet the published head. Real native default-model turns, explicit selection, pane replacement and hooks toggling passed on the local draft. Saved-session restart and a successful real Codex command are still owed.The native CLI has no supported Auto-model selector. Unresolved-model resolution, completion fallback and model-only IPC are defensive paths covered by the owning-layer deterministic fault/IPC contracts; the real runs received concrete models in their initial hooks and do not claim live coverage of those paths. Final integration, audit, performance review, checks and CI remain pending.
Performance
Performance remains blocked on the remaining provenance-admission and renderer-inventory findings. Selected root-model contracts pass81 cases across13 files on458a6bfca7c4a446d42bb715860b9de1fec59d5b, including incremental reads and phone-catalog suppression. These results do not establish a full performance pass or runtime CPU, elapsed-time or heap measurements. Final repairs and review are pending.
Risk
Level: Medium
Incorrect ownership or turn ordering could show a stale model. Shared polling changes can affect other terminal agents and remote hosts. Existing saved data stays readable; a plain revert restores prior behavior.
AI Disclosure
Review
Draft. The independent audit found a pending-completion regression and per-cancellation global queue scans. The full performance scan found renderer fanout, repeated tail reads, stalled I/O/lease cleanup and raw replay retention. Confirmed blockers are being repaired; final verification remains pending.
Agent skill upstream boundary
Notes
Planned validation covers local and relayed execution, folder workspaces, consecutive turns, hook toggling, dismissal and restart. Current runtime evidence is limited to the flows listed above.
Checklist