feat(chat): Claude Code chats use a service token from a private file when the server runs in the background

This commit is contained in:
2026-10-23 23:09:52 +01:00
parent d79173fae3
commit b490728c55
4 changed files with 107 additions and 1 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ func (s *session) spawn(ctx context.Context) (*process, error) {
}
cmd := exec.CommandContext(s.chat.ctx, s.chat.binary, args...)
cmd.Dir = s.directory
cmd.Env = os.Environ()
cmd.Env = withServiceToken(os.Environ())
cmd.WaitDelay = 5 * time.Second
stdin, err := cmd.StdinPipe()
if err != nil {