claude: pass --settings as a file path (avoid argv length limit)

This commit is contained in:
müde 2026-05-15 18:12:07 +02:00
parent cf8f1e64b1
commit d8807b8e8c
3 changed files with 26 additions and 5 deletions

View file

@ -127,6 +127,7 @@ async fn serve(
tracing::info!(socket = %socket.display(), "hive-ag3nt serve");
let _ = state; // reserved for future state transitions (turn-loop -> needs-login)
let mcp_config = turn::write_mcp_config(socket).await?;
let settings = turn::write_settings(socket).await?;
let label = std::env::var("HIVE_LABEL").unwrap_or_else(|_| "hive-ag3nt".into());
let system_prompt = turn::write_system_prompt(socket, &label, mcp::Flavor::Agent).await?;
loop {
@ -143,6 +144,7 @@ async fn serve(
&prompt,
&mcp_config,
&system_prompt,
&settings,
&bus,
mcp::Flavor::Agent,
)