Skip to content

acp: Add a timeout when initializing an ACP agent so the user isn't waiting forever#43663

Merged
benbrandt merged 1 commit intomainfrom
acp-initialize-timeout
Nov 27, 2025
Merged

acp: Add a timeout when initializing an ACP agent so the user isn't waiting forever#43663
benbrandt merged 1 commit intomainfrom
acp-initialize-timeout

Conversation

@benbrandt
Copy link
Member

Sometimes we are unable to receive messages at all from an agent. This puts on upper bound on the initialize call so we can at least give a message to the user that something is wrong here.

30s might feel like too long, but I wanted to avoid some false positives in case there was something an agent needed to do at startup. This will still communicate to the user at some point that something is wrong, rather than leave them waiting forever with no signal that something is going wrong.

Release Notes:

  • agent: Show an error message to the user if we are unable to initialize an ACP agent in a reasonable amount of time.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Nov 27, 2025
@benbrandt benbrandt enabled auto-merge (squash) November 27, 2025 12:41
…aiting forever

Sometimes we are unable to receive messages at all from an agent. This puts on upper bound on the `initialize` call so we can at least give a message to the user that something is wrong here.

30s might feel like too long, but I wanted to avoid some false positives in case there was something an agent needed to do at startup. This will still communicate to the user at some point that something is wrong, rather than leave them waiting forever with no signal that something is going wrong.
@benbrandt benbrandt force-pushed the acp-initialize-timeout branch from b65c7aa to 21bc8fa Compare November 27, 2025 12:53
@benbrandt benbrandt merged commit 007d648 into main Nov 27, 2025
23 checks passed
@benbrandt benbrandt deleted the acp-initialize-timeout branch November 27, 2025 13:01
@benbrandt
Copy link
Member Author

/cherry-pick stable

github-actions bot pushed a commit that referenced this pull request Nov 27, 2025
…aiting forever (#43663)

Sometimes we are unable to receive messages at all from an agent. This
puts on upper bound on the `initialize` call so we can at least give a
message to the user that something is wrong here.

30s might feel like too long, but I wanted to avoid some false positives
in case there was something an agent needed to do at startup. This will
still communicate to the user at some point that something is wrong,
rather than leave them waiting forever with no signal that something is
going wrong.

Release Notes:

- agent: Show an error message to the user if we are unable to
initialize an ACP agent in a reasonable amount of time.
@benbrandt
Copy link
Member Author

/cherry-pick preview

github-actions bot pushed a commit that referenced this pull request Nov 27, 2025
…aiting forever (#43663)

Sometimes we are unable to receive messages at all from an agent. This
puts on upper bound on the `initialize` call so we can at least give a
message to the user that something is wrong here.

30s might feel like too long, but I wanted to avoid some false positives
in case there was something an agent needed to do at startup. This will
still communicate to the user at some point that something is wrong,
rather than leave them waiting forever with no signal that something is
going wrong.

Release Notes:

- agent: Show an error message to the user if we are unable to
initialize an ACP agent in a reasonable amount of time.
zed-zippy bot added a commit that referenced this pull request Nov 27, 2025
…aiting forever (#43663) (cherry-pick to stable) (#43667)

Cherry-pick of #43663 to stable

----
Sometimes we are unable to receive messages at all from an agent. This
puts on upper bound on the `initialize` call so we can at least give a
message to the user that something is wrong here.

30s might feel like too long, but I wanted to avoid some false positives
in case there was something an agent needed to do at startup. This will
still communicate to the user at some point that something is wrong,
rather than leave them waiting forever with no signal that something is
going wrong.

Release Notes:

- agent: Show an error message to the user if we are unable to
initialize an ACP agent in a reasonable amount of time.

Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
zed-zippy bot added a commit that referenced this pull request Nov 27, 2025
…aiting forever (#43663) (cherry-pick to preview) (#43668)

Cherry-pick of #43663 to preview

----
Sometimes we are unable to receive messages at all from an agent. This
puts on upper bound on the `initialize` call so we can at least give a
message to the user that something is wrong here.

30s might feel like too long, but I wanted to avoid some false positives
in case there was something an agent needed to do at startup. This will
still communicate to the user at some point that something is wrong,
rather than leave them waiting forever with no signal that something is
going wrong.

Release Notes:

- agent: Show an error message to the user if we are unable to
initialize an ACP agent in a reasonable amount of time.

Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
11happy pushed a commit to 11happy/zed that referenced this pull request Dec 1, 2025
…aiting forever (zed-industries#43663)

Sometimes we are unable to receive messages at all from an agent. This
puts on upper bound on the `initialize` call so we can at least give a
message to the user that something is wrong here.

30s might feel like too long, but I wanted to avoid some false positives
in case there was something an agent needed to do at startup. This will
still communicate to the user at some point that something is wrong,
rather than leave them waiting forever with no signal that something is
going wrong.

Release Notes:

- agent: Show an error message to the user if we are unable to
initialize an ACP agent in a reasonable amount of time.
benbrandt added a commit that referenced this pull request Dec 3, 2025
github-actions bot pushed a commit that referenced this pull request Dec 3, 2025
zed-zippy bot added a commit that referenced this pull request Dec 3, 2025
… isn't waiting forever" (#44066) (cherry-pick to preview) (#44067)

Cherry-pick of #44066 to preview

----
Reverts #43663

Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
CherryWorm pushed a commit to CherryWorm/zed that referenced this pull request Dec 16, 2025
someone13574 pushed a commit to someone13574/zed that referenced this pull request Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant