bug(init): interactive setup silently drops unknown configured agents
Maintainers usually reply within 5 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Start at prompt_for_agents and the interactive branch of resolve_agents, then trace how init writes the configured agent list. Reproduce with an isolated SYMPOSIUM_HOME/config.toml containing gemini and claude, run interactive cargo agents init, and confirm unknown entries are preserved unless --remove-agent is used. Add coverage for the interactive prompt path, since existing init/sync tests capture output without exercising prompts.
Written by the indexing model from the issue text.
Description
Interactive cargo agents init silently removes configured agent names that the current binary does not recognize, even when the user accepts every default.
Reproduction
Start with this user configuration (for example in an isolated SYMPOSIUM_HOME/config.toml):
auto-update = "off"
hook-scope = "project"
[defaults]
symposium-recommendations = false
user-plugins = false
[[agent]]
name = "gemini"
[[agent]]
name = "claude"
- Run
cargo agents initin an interactive terminal, without--add-agentor--remove-agent. - Accept the default selections and answers at every prompt.
- Inspect
config.toml.
Actual: the agent list contains only claude. gemini was not shown in the picker and is removed without a warning or explicit removal request.
Expected: accepting the defaults preserves unknown configured agent entries. They should remain until explicitly removed, for example with cargo agents init --remove-agent gemini.
Cause and validation
prompt_for_agents lists only Agent::all(). The interactive branch of resolve_agents returns only those selected known agents, and init replaces the configured agent list with that result.
Reproduced with the actual binary in a pseudo-terminal at revision 5f37e8d175d58a5871d1c441d51d4ce31596f595: all four prompts were accepted, the command exited successfully, and the saved list changed from ["gemini", "claude"] to ["claude"]. Existing init/sync and hook-stdout tests passed; their capturing output does not exercise interactive prompts.
This behavior predates #389 and is tracked as a follow-up bug, not a blocker for that PR. #389 improves preservation in non-interactive and flag-driven runs; the interactive path still needs coverage.
- Dominant language
- Rust
- Stars
- 247
- Forks
- 30
- Avg merge
- 4d 19h
- Merged PRs (30d)
- 44
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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 symposium-dev/symposium
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
symposium-dev/symposium#530 ·
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
symposium-dev/symposium#369 ·
Maintainers usually reply within 5 days
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
symposium-dev/symposium#208 ·
Maintainers usually reply within 5 days
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 68/100
symposium-dev/symposium#531 ·
Maintainers usually reply within 5 days
-
ACP test setup leaks session settings into the test processPossibly taken @gmemuriuki claimed this 1 day ago. Openbug
symposium-dev/symposium#527 · 1 assignee ·
Maintainers usually reply within 5 days
All issues in symposium-dev/symposium
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
topgrade-rs/topgrade#2540 ·
Maintainers usually reply within 1 day
-
Invalid JSON options for ngram and edge_ngram silently use defaultsPossibly taken @Tilendlesa claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
noemaforge/vimanam#153 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day