cli: chroxy schedule could read the running daemon's default provider over the existing authenticated path (follow-up to #9178)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 54/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- javascript, node.js
Research direction
Start with packages/server/src/cli/agent-cmd.js to see how it uses the existing connection helper and primary token, then trace the authenticated WebSocket data named in the issue. Check how chroxy schedule currently reports the configured default after #9200. Done means the daemon default is reported when reachable, configured-default wording is used after an unreachable or timed-out read, and tests cover all three cases.
Written by the indexing model from the issue text.
Description
Context
Found in the review of PR #9200, which closes #9178. #9200 took the issue's second acceptance route: chroxy schedule reports the configured default (config/env) and says that a daemon started with --provider, or with a different CHROXY_PROVIDER, may use another one. It deliberately stays offline and works on the scheduler store without needing a daemon.
Description
The running daemon's effective default is already readable through an existing authenticated path:
- The WebSocket handshake carries it:
auth_bootstrap.defaultProvider,list_providers, andscheduled_tasks.defaultProvider. packages/server/src/cli/agent-cmd.jsalready reaches the daemon with theconnection.jsonprimary token.
chroxy schedule could therefore read the actual default when a daemon is reachable, and fall back to the configured default with #9200's wording when it is not.
Acceptance Criteria
- Reuse the existing connection helper from
agent-cmd.js, or a shared extraction of it. No new endpoint, no new message type, and no wider token use. - When a daemon is reachable, the default text and refusal clause use the daemon's default and say where it came from. When none is reachable, or the read fails or times out, output falls back to the configured default and #9200's wording, with no added delay beyond a short timeout.
- Tests cover a daemon whose default differs from config, an unreachable daemon, and a timeout.
- Any new or extracted helper keeps
agent-cmd.js's token handling unchanged.
- Dominant language
- JavaScript
- Stars
- 7
- Forks
- 1
- Avg merge
- 2h 3m
- Merged PRs (30d)
- 333
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from blamechris/chroxy
-
from-review tech-debt testing
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
blamechris/chroxy#9520 ·
Maintainers usually reply within 1 day
-
priority: low server
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
blamechris/chroxy#9340 ·
Maintainers usually reply within 1 day
-
documentation from-review
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
blamechris/chroxy#9237 ·
Maintainers usually reply within 1 day
-
agent-control client: notify() docstring should say the outbound gate applies only in principal modeOpenenhancement from-review
Difficulty 1/5 Under an hour Newbie friendliness 80/100
blamechris/chroxy#9227 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
blamechris/chroxy#9108 ·
Maintainers usually reply within 1 day
All issues in blamechris/chroxy
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Use one constant for the 10,000-character input limitPossibly taken @NginxL claimed this today. Opengood first issue refactor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
aniru-dh21/snap-validate#51 ·
Maintainers usually reply within 1 day
-
Documentation pleaseOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
area/host bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Fei2411/DeepSeek-Bot#3190 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
freelawproject/litigant-portal#1307 ·
Maintainers usually reply within 2 days