Skip to content

Claude code message gets lost when it prompts for authentication #42379

@Jaakkonen

Description

@Jaakkonen

Summary

When requiring a Claude code authentication in the agent side-panel and finishing the authentication flow, the original prompt is lost.

Description

When requiring a Claude code authentication in the agent side-panel and finishing the authentication flow, the original prompt is lost.

Steps to reproduce:

  1. Ensure Claude Code is logged out
  2. Start Zed and open agent sidepanel
  3. Write a prompt, send it
  4. Pop-up requiring reauthentication shows, click it and finish the flow
  5. The prompt has disappeared and no answer to it is ever returned

Expected Behavior:
The prompt shows and is kept in the text input where I wrote it

Actual Behavior:
The prompt is lost.

Zed Version and System Specs

Zed: v0.210.4 (Zed)
OS: Linux Wayland nixos 25.11
Memory: 14.9 GiB
Architecture: x86_64
GPU: AMD Radeon 680M (RADV REMBRANDT) || radv || Mesa 25.2.6

If applicable, attach your Zed.log file to this issue.

Zed.log
2025-11-10T20:12:49+02:00 WARN  [agent_servers::acp] agent stderr: Spawning Claude Code process: /nix/store/yln56wciplw21gnsljp5gkzyzc2n52ni-nodejs-24.11.0/bin/node /home/jaakko/.local/share/zed/external_agents/claude-code-acp/0.10.0/node_modules/@anthropic-ai/claude-agent-sdk/cli.js --output-format stream-json --verbose --input-format stream-json --permission-prompt-tool stdio --allowedTools mcp__acp__Read,mcp__acp__BashOutput,mcp__acp__KillShell --disallowedTools Read,Write,Edit,Bash,BashOutput,KillShell --mcp-config {"mcpServers":{"acp":{"type":"sdk","name":"acp"}}} --setting-sources user,project,local --permission-mode default --allow-dangerously-skip-permissions --include-partial-messages

2025-11-10T20:12:49+02:00 ERROR [extension_host::extension_host] failed to load python extension.toml

Caused by:
    No such file or directory (os error 2)
2025-11-10T20:12:49+02:00 INFO  [extension_host] rebuilt extension index in 3.764563ms
2025-11-10T20:12:49+02:00 ERROR [client::client] DBus error Prompt was dismissed
2025-11-10T20:12:49+02:00 ERROR [extension_host::extension_host] failed to load python extension.toml

Caused by:
    No such file or directory (os error 2)
2025-11-10T20:12:49+02:00 INFO  [extension_host] rebuilt extension index in 3.530171ms
2025-11-10T20:13:24+02:00 ERROR [worktree::worktree] failed to load gitignore file at /home/jaakko/.config/git/CuID6VHu

Caused by:
    No such file or directory (os error 2)
2025-11-10T21:12:41+02:00 WARN  [agent_servers::acp] agent stderr: Error handling request {

2025-11-10T21:12:41+02:00 WARN  [agent_servers::acp] agent stderr:   jsonrpc: '2.0',

2025-11-10T21:12:41+02:00 WARN  [agent_servers::acp] agent stderr:   id: 2,

2025-11-10T21:12:41+02:00 WARN  [agent_servers::acp] agent stderr:   method: 'session/prompt',

2025-11-10T21:12:41+02:00 WARN  [agent_servers::acp] agent stderr:   params: {

2025-11-10T21:12:41+02:00 WARN  [agent_servers::acp] agent stderr:     sessionId: '019a6ef8-7923-720e-acf9-7891ff0e1b75',

2025-11-10T21:12:41+02:00 WARN  [agent_servers::acp] agent stderr:     prompt: [ [Object] ]

2025-11-10T21:12:41+02:00 WARN  [agent_servers::acp] agent stderr:   }

2025-11-10T21:12:41+02:00 WARN  [agent_servers::acp] agent stderr: } { code: -32000, message: 'Authentication required', data: undefined }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions