claude: pass --settings as a file path (avoid argv length limit)
This commit is contained in:
parent
cf8f1e64b1
commit
d8807b8e8c
3 changed files with 26 additions and 5 deletions
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue