fix: address argus review yellows on #1158
- restore count in get_loose_ends: 'N local task(s):' instead of bare 'local task(s):' - add cross-crate coupling comment to both mcp_loose_ends_dir() copies - add comment in hive-bash-daemon service env explaining HYPERHIVE_HARNESS_DIR is already injected via systemd.globalEnvironment by the meta flake
This commit is contained in:
parent
8731474104
commit
f87a52f28f
4 changed files with 17 additions and 1 deletions
|
|
@ -743,7 +743,8 @@ impl AgentServer {
|
|||
let mcp_items = crate::mcp_loose_ends::collect();
|
||||
if !mcp_items.is_empty() {
|
||||
use std::fmt::Write as _;
|
||||
let _ = write!(out, "\n\nlocal task(s):");
|
||||
let n = mcp_items.len();
|
||||
let _ = write!(out, "\n\n{n} local task(s):");
|
||||
for item in &mcp_items {
|
||||
let _ = write!(out, "\n- {item}");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,6 +10,9 @@
|
|||
|
||||
use std::path::PathBuf;
|
||||
|
||||
/// NOTE: the base-dir resolution logic here is intentionally mirrored in
|
||||
/// `hive-bash-mcp/src/paths.rs::mcp_loose_ends_dir()`. They can't share
|
||||
/// code across crates — keep them in sync if the fallback logic changes.
|
||||
fn loose_ends_dir() -> PathBuf {
|
||||
let base = if let Some(p) = std::env::var_os("HYPERHIVE_HARNESS_DIR") {
|
||||
PathBuf::from(p)
|
||||
|
|
|
|||
Loading…
Reference in a new issue