Where does the bug appear (feature/product)?
Background Agent (GitHub, Slack, Web, Linear)
Describe the Bug
Background Agent Fails to Launch (Stuck in Initialization)
Description:
When using the Background Agent API to launch agents, some agents remain stuck in the “preparation” or “initialization” state indefinitely. The logs continuously repeat initialization messages without progressing to the “running” state.
Example:
Agent ID: bc-7822e1b7-86cb-44ae-948e-481f12c4271f
This agent has been stuck in initialization for over 40 minutes, showing the same repeating logs.
Frequency:
Occurred with 8 different agents — none of them launched successfully.
It seems the reason is long prompt in payload.
LOGS:
⣯ Finalizing workspace setup…
│ ⣟ Setting up code completion…
│ ⡿ Loading workspace: 24% complete
│ ⣻ Preparing development tools…
│ ⣽ Validating environment…
│ ⣾ Finalizing workspace setup…
│ ⣷ Startup progress: 25% done
│
Service ready - awaiting requests…
│ ✓ Checks passing
│ ⢿ Preparing development tools…
│ ⣻ Loading editor preferences…
│ ⣽ Preparing execution context…
│ ⣾ Setup progress: 44% complete
│ ⡿ Loading workspace: 26% complete
│ ⢿ Validating environment…
│ ⣾ Loading workspace: 29% complete
│ ⣾ Initialization: 35% finished
│ ⣷ Startup progress: 29% done
│ ⡿ Loading workspace: 23% complete
│ ⣾ Loading workspace: 47% complete
│ ⣽ Initialization: 28% finished
│ ⣯ Startup progress: 40% done
│
Service ready - awaiting requests…
│ ⢿ Loading workspace: 25% complete
│ ⣻ Preparing development tools…
│ ⣽ Loading workspace: 40% complete
│ ⣾ Loading workspace: 22% complete
│ ✓ Checks passing
│ ⣟ Preparing development tools…
│ ⡿ Initialization: 36% finished
│ ⢿ Initializing extension support…
│ ▣ Ready for task execution
│ ◈ Workspace fully configured
│ ⣷ Setup progress: 41% complete
│ ■ Standing by for user input…
│ ⣟ Loading workspace: 45% complete
│ ⡿ Initialization: 22% finished
│ ⢿ Configuration: 36% loaded
│ ⣻ Loading editor preferences…
│ ⣾ Loading editor preferences…
│ ● Environment ready
│ ▣ Ready for task execution
│ ✓ Checks passing
│ ⣟ Loading additional configurations…
│ ✓ Checks passing
│ ✓ Checks passing
│ ⣽ Configuration: 41% loaded
│ ⣷ Finalizing workspace setup…
Steps to Reproduce
Steps to Reproduce:
Use the Background Agent API to launch a new agent.
Wait for the agent to initialize.
Observe that the agent remains in the preparation/initialization phase for an extended period.
Observed Behavior:
Agents stay in the initialization phase for 30–40+ minutes.
Logs repeatedly show initialization messages with no further progress.
Eventually, I have to manually remove the agents since they never launch successfully.
Expected Behavior
The agent should complete initialization within a reasonable time and transition to the “running” state.
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
background agent api
Does this stop you from using Cursor
No - Cursor works, but with this issue

