Dependency-change hook prompts for cargo agents sync even when sync offers no new skills
Maintainer thường phản hồi trong vòng 5 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- rust
- Lĩnh vực
- developer-experience
Hướng nghiên cứu
Start in src/hook.rs, at run_auto_sync, where dependencies_changed is set after the freshness check and returned, and at possible_new_plugins_notice, which emits the warning on that boolean alone. Check whether discovery can report an undecided plugin before the notice fires, and whether the explicit cargo agents sync path prints anything when nothing is found. Done means the notice appears only for a real undecided plugin, and an empty sync says so. The root cause is still an unverified hypothesis, so confirm it first.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Authored by Codex on behalf of @nikomatsakis, at their request.
Problem
During normal work in Codex desktop, Symposium repeatedly tells the agent to ask the user to run cargo agents sync to review possible new plugins. Following that instruction appears to offer nothing to review or install.
The user reports:
> cargo agents sync
ℹ️ scanning 37 workspace dependencies
No new skills or consent choices appear. This interrupts work and leaves it unclear whether sync did nothing successfully, failed to discover a plugin, or still needs action.
Observed context
This happened while reviewing and checking out habeas-codicem PR #27. The notice appeared more than once during the chat; one occurrence followed switching a linked worktree from main to the PR head. This reports repeated notices during a workflow, not a verified claim that an unchanged lockfile always triggers a notice.
The exact hook context delivered to the agent was:
The workspace's dependencies just changed, so there may be new agent plugins available from them. They stay off until the user consents: tell the user to run
cargo agents syncin their terminal to review them. Do not enable them yourself.
The agent consequently repeated the instruction to the user. The sync output above was supplied by the user; Codex did not run sync or enable plugins while preparing this report.
Environment and reproduction inputs
cargo-agents 0.5.1cargo 1.97.0 (c980f4866 2026-06-30)rustc 1.97.0 (2d8144b78 2026-07-07)- Linux aarch64; Codex desktop with Symposium hooks; linked Git worktree.
- Project:
habeas 0.2.0, Rust edition 2024. - PR head:
2badb8084fccaa8c34e37fcfe58bc55a2dc382b0. - Base:
bc39cdd00f3048594a7eee1d69b7c3b276ed0606. - Full Cargo.toml.
- Full Cargo.lock, including exact transitive versions.
- The PR's sole direct dependency addition is
git2 = { version = "0.21.0", default-features = false }. There are 37 regular dependencies plus two dev-dependency entries.
A reproduction route to investigate: use this project with the hook enabled, switch from the base revision to the PR revision (changing Cargo.toml/Cargo.lock), observe the post-tool notice, then run cargo agents sync interactively.
Source-level lead
In the locally installed 0.5.1 source, src/hook.rs::run_auto_sync sets dependencies_changed = !session_start && workspace_root.is_some() after its freshness check, runs sync, records success, and returns that boolean. possible_new_plugins_notice emits the generic warning whenever that boolean is true. It does not appear to check whether discovery found a new plugin awaiting consent. This could explain a notice when nothing needs approval; this is a source-based hypothesis, not a verified diagnosis against current main.
Offline Cargo metadata showed package.metadata.symposium only on the root habeas package among the resolved packages. This does not rule out registry-provided plugins. The root's own skills have defaults.skills = false; its metadata is below.
Expected behavior
- Prompt for review when an actual undecided plugin exists, preferably naming its package and version.
- Avoid asking the user to take action when a dependency change yields no new reviewable plugins.
- When explicit sync has nothing to review or install, say so clearly instead of ending after the scanning line.
- Avoid repeating actionable notices for candidates already surfaced or handled.
Related: #400 (name newly discovered packages and avoid repeated notices), #453 (explicit sync discovery).
Direct dependency requirements and features
These are manifest requirements reported by Cargo metadata; the linked lockfile supplies resolved versions.
ast-grep-config =0.51.1ast-grep-core =0.51.1aws-config =1.8.13aws-sdk-bedrockruntime ^1.153clap ^4.6.7; features: deriveconsole ^0.16.6fastrand ^2.5.0git2 ^0.21.0; default features disabledgrep-regex ^0.1.14grep-searcher ^0.1.17httpdate ^1.0.3ignore ^0.4.34indicatif ^0.18.4mdbook-preprocessor =0.5.3pulldown-cmark =0.11.3regex ^1.13.1reqwest ^0.13.5; default features disabled; features: rustlsrig-bedrock ^0.44.0(packagehabeas-rig, pathvendor/habeas-rig)rig-core ^0.44; features: reqwestsecretshape =0.1.0serde ^1.0.229; features: deriveserde-saphyr ^2.1.1; default features disabled; features: deserializeserde_json ^1sha2 ^0.11.1tempfile ^3.27.0tokio ^1.54.1; features: rt-multi-thread, signal, macros, sync, timetoml ^1.2.0toml_edit ^0.25.17tree-sitter =0.27.1tree-sitter-css =0.25.0tree-sitter-md =0.5.4tree-sitter-python =0.25.0tree-sitter-rust =0.24.2tree-sitter-toml-ng =0.7.0tree-sitter-typescript =0.23.2tree-sitter-yaml =0.7.2uuid ^1.29.2; features: v4tempfile ^3.27.0(dev)tokio ^1.54.1(dev); features: test-util
Root package Symposium metadata
{
"name": "habeas",
"defaults": {
"skills": false
},
"skills": [
{
"source": {
"path": "assets/skills"
}
}
],
"installations": [
{
"name": "habeas",
"source": "cargo",
"crate": "habeas",
"executable": "habeas",
"global": true
}
],
"hooks": [
{
"name": "habeas-setup-check",
"event": "SessionStart",
"format": "symposium",
"command": "habeas",
"args": [
"hook",
"session-start"
]
}
]
}
- Ngôn ngữ chính
- Rust
- Star
- 247
- Fork
- 30
- Merge trung bình
- 4 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 44
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của symposium-dev/symposium
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
symposium-dev/symposium#530 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
symposium-dev/symposium#406 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
symposium-dev/symposium#369 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
symposium-dev/symposium#208 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
symposium-dev/symposium#531 ·
Maintainer thường phản hồi trong vòng 5 ngày
Tất cả issue của symposium-dev/symposium
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
topgrade-rs/topgrade#2540 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Invalid JSON options for ngram and edge_ngram silently use defaultsCó thể đã có người làm @Tilendlesa đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
noemaforge/vimanam#153 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 3 ngày