A session keeps its conversation when its Job is replaced #3
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/session-resume"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
An agent's
claude_claim(e.g.claude-{agent}, with{agent}/{session}replaced) names a PersistentVolumeClaim. The Job mounts it at/var/lib/akephalos/claude, setsfsGroupto the pod user, and gives the hostAKEPHALOS_CLAUDE_CONFIG_DIR, which becomes claudeacp's ConfigDir. The host keeps the ACP session id in a file there; on a later start it callssession/resume(session/loadwhere resume is not offered) with that id and gc's working directory.session/newis used when there is no id, the agent has no conversation for it (resourceNotFound), or it offers neither. Any other resume error fails the start.The city must provide: a PVC (ReadWriteOnce is enough) in
kube.namespacefor each agent withclaude_claim, andclaude_claimin that agent's table of akephalos.toml. One-shot agents set nothing. The server does not create the claim. gc must give the session the same work_dir at each start.Tests: Job replaced then resumed with
--resume=<id>and a continued turn; another session or no volume starts new; missing transcript falls back to new and keeps the new id; load fallback; Job volume, mount, env, fsGroup; config validation.