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

@ -126,6 +126,7 @@ async fn one_shot(socket: &Path, req: ManagerRequest) -> Result<()> {
async fn serve(socket: &Path, interval: Duration, bus: Bus) -> Result<()> {
tracing::info!(socket = %socket.display(), "hive-m1nd serve");
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(|_| "hm1nd".into());
let system_prompt = turn::write_system_prompt(socket, &label, mcp::Flavor::Manager).await?;
loop {
@ -159,6 +160,7 @@ async fn serve(socket: &Path, interval: Duration, bus: Bus) -> Result<()> {
&prompt,
&mcp_config,
&system_prompt,
&settings,
&bus,
mcp::Flavor::Manager,
)