Watch
0
0
Fork
You've already forked hyperhive
0

hive-agent: the agent has no login flow of its own, credentials come from the swarm

This commit is contained in:
damocles 2026-11-06 23:17:11 +01:00 • committed by mara
commit ac3b3cfcd3

View file

@ -97,7 +97,8 @@ pub enum LoginState {
/// `~/.claude/` has credentials; turn loop is running.
Online,
/// `~/.claude/` is empty; harness is up, web UI is bound, turn loop is NOT
/// running. Operator needs to complete login from the web UI.
/// running. The operator logs in from the swarm UI; the credentials then
/// arrive from the swarm secret store.
NeedsLogin,
}
@ -378,7 +379,7 @@ mod tests {
#[test]
fn has_fresh_credentials_rewrite_after_failure_resumes() {
// The operator's `/login/code` flow rewrites the stale file in
// A fresh login from the swarm rewrites the stale file in
// place; its mtime bumps strictly past the failure baseline.
let dir = tempfile::tempdir().unwrap();
fs::write(dir.path().join(".credentials.json"), b"{}").unwrap();