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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user