summaryrefslogtreecommitdiff
path: root/makima/src/daemon/process
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-03-04 16:47:12 +0000
committerGitHub <noreply@github.com>2026-03-04 16:47:12 +0000
commitec9738a069e61529be040eff065318972b8a11e2 (patch)
treed1b15d3b22d4980acff4fba8a12b99920035025c /makima/src/daemon/process
parent78cb861412850889424ae7d5ae5cd952a2b90295 (diff)
downloadsoryu-ec9738a069e61529be040eff065318972b8a11e2.tar.gz
soryu-ec9738a069e61529be040eff065318972b8a11e2.zip
feat: task slide-out panel, 3-way reconcile toggle, daemon reauth fix (#85)
* WIP: heartbeat checkpoint * WIP: heartbeat checkpoint * feat: soryu-co/soryu - makima: Fix daemon reauth flow for new claude setup-token output format * feat: soryu-co/soryu - makima: Update frontend reconcile toggle to three-way switch * feat: soryu-co/soryu - makima: Add task slide-out panel to directive page
Diffstat (limited to 'makima/src/daemon/process')
-rw-r--r--makima/src/daemon/process/claude.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/makima/src/daemon/process/claude.rs b/makima/src/daemon/process/claude.rs
index c8add1c..57c8f77 100644
--- a/makima/src/daemon/process/claude.rs
+++ b/makima/src/daemon/process/claude.rs
@@ -510,6 +510,16 @@ impl ProcessManager {
env.extend(extra);
}
+ // Load OAuth token from disk and set as env var if not already provided.
+ // This allows processes to authenticate using tokens saved by the reauth flow.
+ // The token is loaded fresh each time (not cached) so newly saved tokens are picked up.
+ if !env.contains_key("CLAUDE_CODE_OAUTH_TOKEN") {
+ if let Some(token) = crate::daemon::task::manager::load_oauth_token() {
+ tracing::debug!("Setting CLAUDE_CODE_OAUTH_TOKEN from saved token file");
+ env.insert("CLAUDE_CODE_OAUTH_TOKEN".to_string(), token);
+ }
+ }
+
// Build Claude arguments list
let mut claude_args = Vec::new();