Skip to content

refactor: drop the unused steer capability - #553

Open
vaakx-dev wants to merge 1 commit into
mainfrom
refactor/drop-steer-capability
Open

vaakx-dev wants to merge 1 commit into
mainfrom
refactor/drop-steer-capability

Conversation

@vaakx-dev

Copy link
Copy Markdown
Owner

Removes the provider steer capability that nothing read, and stops calling waiting messages "queued" in the chat plugin.

What

  • Drop ProviderCapabilities.steer and its values in accounts, agy, Claude Code, Codex, replay and the tests.
  • The chat plugin's description says "waiting messages" instead of "queued messages", and its pending-row helper is renamed to match.

Why

  • Sand is steer-only since fix: updates restart within 2 minutes, messages always steer #538: a message sent while a chat works steers it at the next step. The bridge decides by whether a session has steer(), so the flag was dead.
  • The pending list now holds only messages no turn can take yet (paused bot, usage hold, engine not ready, steers left after a stop). Its rows already say "Starts as soon as this chat can run" or "Held".

Verification

  • tsc, vrui-check, scripts/deps.ts and scripts/comments.ts pass.
  • bun test on accounts, provider-threads, replay, agy, codex, claude-code, chat and engine: 94 pass.

Every provider steers at the next step, and the bridge already checks
whether a session can steer itself, so ProviderCapabilities.steer was
never read. Messages waiting for a chat to run are no longer called
queued in the chat plugin.
@github-actions

Copy link
Copy Markdown

Performance: ✅ every row is within its limit

Main 932d802 against this PR 47ebca0, both measured in the same job, medians of 5 runs. Times, memory and CPU fail when the PR is more than 15% worse, bytes when they grow more than 5%; changes under 20 ms or 2 KB never fail. Logs

main PR change
Phone (4× slower CPU, 150 ms, 9 Mbit/s link)
open a chat: shows 278 ms 279 ms +0.5% ✅
open a chat: usable 292 ms 287 ms -1.7% ✅
first visit with an empty cache: usable 1.82 s 1.81 s -0.8% ✅
open a long chat: usable 279 ms 278 ms -0.4% ✅
send: your message shows 50 ms 49 ms -2.4% ✅
send: first reply text shows 278 ms 279 ms +0.5% ✅
main thread blocked over these steps 437 ms 438 ms +0.2% ✅
data on first visit 916.3 KB 916.9 KB +0.1% ✅
data per chat opened 49.9 KB 49.5 KB -0.7% ✅
data while idle for 20 s 220 B 220 B 0% ✅
app code a phone downloads 1.6 MB 1.6 MB +0.0% ✅
Main pages (same phone and link)
Settings: time to open 57 ms 57 ms -1.0% ✅
Settings: data to open 100 B 100 B 0% ✅
Settings: data per minute left open 600 B 600 B 0% ✅
Add-ons: time to open 76 ms 75 ms -2.4% ✅
Add-ons: data to open 0 B 0 B 0% ✅
Add-ons: data per minute left open 600 B 600 B 0% ✅
Usage: time to open 62 ms 62 ms -0.5% ✅
Usage: data to open 14.5 KB 14.5 KB 0% ✅
Usage: data per minute left open 600 B 600 B 0% ✅
Search: time to open 74 ms 69 ms -6.7% ✅
Search: data to open 0 B 0 B 0% ✅
Search: data per minute left open 600 B 600 B 0% ✅
Performance: time to open 442 ms 441 ms -0.2% ✅
Performance: data to open 851 B 867 B +1.9% ✅
Performance: data per minute left open 1.9 KB 1.9 KB +1.8% ✅
PC side
start-up until ready 2.69 s 2.68 s -0.5% ✅
memory while idle 236.8 MB 236.2 MB -0.3% ✅
CPU used over 60 s idle 280 ms 280 ms 0% ✅
memory after 100 scripted chat turns 275.0 MB 273.6 MB -0.5% ✅
CPU for one reply 33 ms 33 ms 0% ✅
search time on 100k messages 67 ms 70 ms +4.8% ✅
database size per 10k messages 19.8 MB 19.8 MB -0.0% ✅
worktree list with sizes on 40 worktrees 546 ms 539 ms -1.3% ✅
slowest other reply during a worktree list 35 ms 33 ms -6.2% ✅

This branch has not been deployed

No deployments
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.

1 participant