Agents: user collectors + Go connection settings card - #11967
Open
washburnello wants to merge 2 commits into
Open
washburnello wants to merge 2 commits into
washburnello wants to merge 2 commits into
Conversation
omarchy-agent-usage-update also runs omarchy-agent-usage-* collectors from ~/.config/omarchy/agents/collectors/, so one refresh timer covers packaged and user accounts alike. A collector may print one record or an object of several records keyed by id (one scan feeding many tabs); each is fanned out to its own usage file, and ids a collector stops emitting are retired via a cache-dir sidecar the panel never reads.
Gear in the hero (opencode-go tab only) toggles an inline settings card under the provider tabs: workspace-URL field that strips the wrk_ ID itself, masked auth-cookie field with one-line hints, Apply and Test buttons driving the shared update command, and terse verdicts. An accent dot on the gear replaces the red status box for Go; stale or failed limits dim instead of shouting.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two commits, one theme: let the agents panel cover accounts Omarchy doesn't ship collectors for, with OpenCode Go limits as the first user.
1. User collectors through the shared update command (
bin/omarchy-agent-usage-update, README)omarchy-agent-usage-*executables from~/.config/omarchy/agents/collectors/with the same flags (--force,--limits-only,--except, per-agent filter) and the panel's existing refresh timer — no separate scheduling needed.2. Go connection settings card with Test and Apply (
shell/plugins/agents/Panel.qml,Main.qml)opencode-gotab, toggling an inline card under the provider tabs: workspace-URL field (strips thewrk_ID itself), masked auth-cookie field with one-line hints, Apply + Test buttons driving the shared update command, terse verdicts.limitsStaleso cached-after-failure meters can't pose as fresh.Compatibility: without a user collector producing an
opencode-gorecord the gear never renders — zero behavior change for stock installs.agents-panel-test.shandagent-usage-update-test.shpass; fan-out, stale-id retirement, and forced group updates verified live.