fix: CLI spec contradictions from codex AX audit
- Fix paths: relative to agent home dir, not hardcoded /home/agent - Add worker/dream coordination: dream pauses worker to prevent file races - Watch registration via .colony.toml (server reads agent config) - Remove remaining old mentions API reference (use inbox instead) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -228,6 +228,11 @@ pub async fn post_message(
|
||||
}
|
||||
}
|
||||
|
||||
// Content length limit (64KB)
|
||||
if body.content.len() > 65_536 {
|
||||
return Err(AppError::BadRequest("Message content exceeds 64KB limit".into()));
|
||||
}
|
||||
|
||||
let id = Uuid::new_v4().to_string();
|
||||
let user_id = resolve_user(&state.db, &user_param).await?;
|
||||
|
||||
@@ -347,9 +352,9 @@ pub async fn restore_message(
|
||||
|
||||
let message = row.to_api_message();
|
||||
|
||||
// Broadcast as new message (restored)
|
||||
// Broadcast as edit (not Message — dedup would ignore same ID)
|
||||
let tx = state.get_sender(&channel_id).await;
|
||||
let _ = tx.send(WsEvent::Message(message.clone()));
|
||||
let _ = tx.send(WsEvent::Edit(message.clone()));
|
||||
|
||||
Ok(Json(message))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user