ai-devkit icon indicating copy to clipboard operation
ai-devkit copied to clipboard

feat(devkitd): migrate agent rename to atomic daemon-side rename

Open codeaholicguy opened this issue 1 month ago • 0 comments

Part of the devkitd agent migration (#406). Exception to client-execution: runtimeRef.session IS the tmux session name — splitting registry rename from tmux rename-session risks divergence on crash.

Scope

agent rename <old> <new> → daemon-side agent.rename RPC:

  • Name-uniqueness check + registry rename under start_mutex
  • tmux rename-session / herdr rename executed daemon-side atomically
  • Fallback to AgentRegistry.rename on unreachable/unknown-method

Acceptance

  • Rename updates registry + runtime session together
  • name_in_use coded error on collision
  • Console rename pane works via the same path

codeaholicguy avatar Oct 23 '26 08:10 codeaholicguy