Skip to content

Add cached SSH machine usage to Agents - #11546

Closed
Milofax wants to merge 28 commits into
omacom:quattrofrom
Milofax:feat/agent-remote-machines
Closed

Milofax wants to merge 28 commits into
omacom:quattrofrom
Milofax:feat/agent-remote-machines

Conversation

@Milofax

@Milofax Milofax commented Sep 12, 2026 •

Copy link
Copy Markdown

Current update at e92dfe43b03ad57c3e14fcd9431d4e8eeaca25c5: remove the misleading (30 DAYS) suffix from the shared model/summary heading; each summary row retains its own period label. Existing agents-panel-test.sh passes all20 assertions on the integrated tree; independent Opus5 Standards and Spec assessment of the two-file delta from 8161592f is PASS with no findings. This is one independent reviewer assessing both axes. Personal plugin copy updated with the existing compatibility adapter. No new visible UI was opened, per the user's instruction; no claim of a fresh live visual inspection. Full-suite evidence below remains explicitly tied to the previous head.

Add saved SSH computers to the Agents usage overview, with All/This computer/per-computer totals and keyboard-driven add, rename and remove. Existing Linux/macOS SSH accounts supply usage; parsing, sanitized caches and API-equivalent pricing stay on the displaying computer. Unreachable machines retain dated contributions, missing usage remains unknown, and account limits remain local-account information.

Depends on #11121; merge that PR first. This draft targets quattro because the prerequisite head exists only in the contributor fork. Until #11121 is merged, GitHub’s cumulative diff includes its pricing changes. After it lands, re-evaluate the base/diff and review gates before marking ready. This publication does not approve the prerequisite or authorize a merge.

Unchanged files reuse local metadata; large imports continue in bounded passes. OpenCode is optional: native usage and machine management work without OpenCode or the sqlite3 command. If its database exists, collection uses an existing compatible SQLite CLI and a bounded read-only projection. The README documents connected-user-only scope, unsupported copied/synchronized session histories, query/coverage limits and SQLite reader coordination. Prepared views reuse cost calculations, align numbers and colored fills to the right, and size the panel for the largest current content across views and settings. Five/ten machines are test cases, not a machine-count cap.

This update also fixes missing prices for the exact claude-fable-5-1 model using the official Fable 5.1 tariff, verified 2026-09-13. Unknown model IDs retain their measured tokens and unavailable cost. An SSH signing-refusal message is secondary evidence with an explicitly unconfirmed cause; it no longer replaces a later transport/remote-command error or claims a first-time add has cached usage. After a date rollover, days without verified coverage remain unknown in both All and individual views, across all refresh statuses. Account quota does not create usage records; documented local Claude sources must actually contain the model.

Validation at 8161592f258fa1e72f63d170394e67b8c007ab79:

  • Full test/all: CLI and all246 shell test files pass;18 explicit environment skips (mostly unavailable Wayland; also HID/socket/Kitty/subordinate-ID cases). Three isolated harness adapters cover synthetic Git signing in two fixture tests and the route response in the network-QR fixture. Application source/tests unchanged by this harness;1867-path post-run manifest matches.
  • Focused coverage includes13 SSH subprocess/CLI error cases,55 remote backend cases,45 Qt UI cases,6 Qt cache lifecycle cases, and JS pricing/view/scheduling/cache checks. Date-rollover tests cover current/incomplete/importing/stale/unavailable, retained positive subtotals, verified zero and recovery.
  • Personal preview: priced Fable rows rendered in All and a real macOS SSH machine view; local-account quota remains separate. Synthetic unknown-model rows rendered with production row components in All and one remote view. The bounded fixture stubs style/tooltips and is not a full-panel end-to-end test; both reviewers checked the same inputs against final aggregation code. Private usage records and screenshots are not attached.
  • Prior remote-feature evidence at 1dab5fb6: keyboard CRUD at5/10 computers, largest-content bounds and right-aligned fills; switching reuses prepared views without history reads. No QML/layout changes in this follow-up. Live multi-host Linux transport and SSH error paths rely on controlled fixtures; no universal crash-freedom claim.
  • Independent Claude Opus5 Standards and Spec reviews both PASS with no open P0/P1/P2. Review scope is split: remote feature 3e3b553ae50a78839fa76f6f12d6e19c9cc1151a..1dab5fb62e8c7f25cdad3fe37af0ae626d8fe686; Ticket16 follow-up 1dab5fb62e8c7f25cdad3fe37af0ae626d8fe686..8161592f258fa1e72f63d170394e67b8c007ab79 (11 paths). Non-blocking follow-ups record coverage-helper duplication, existing unrelated tariff labels, test deadline runtime, and warning attribution during a local midnight gap.

Local tracker: AgentsStatus .scratch/agent-pricing/issues/08,12–16. Final test log SHA256: f1ebda3ce0315273873f8e9d087aba6ea5dd9d0926539f5d4c0c6182f6b89d0e. Review applies only to the stated deltas, not the prerequisite portion of this cumulative PR.

Cache presentations by their actual usage inputs, price equivalent buckets once, and preserve tariff coverage while reducing synchronous UI work. Treat the documented unavailable geography sentinel as a disclosed Claude standard estimate. Regressions cover real formatting boundaries, invalidation, and safe compaction.
WorkerScript drops individual strings above its transport limit. A valid large Claude refresh therefore became an empty JSON input and removed its provider. Send bounded string parts and reassemble inside the worker; cover a refresh beyond 16 Mi characters with the real QML worker.
@omarchybot omarchybot added the enhancement New feature or request label Sep 27, 2026
@dhh

dhh commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Thanks! It builds on the cost tables from #11121, which target the old panel, and the panel already merges usage from other machines through its synced snapshots. Closing.

@dhh dhh closed this Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants