Files
zed/crates
Richard Feldman 4a15e201ba Don't block thread creation when PromptStore fails to initialize (#52333)
NativeAgentServer::connect used `prompt_store.await?` which turned any
PromptStore initialization failure (permission denied, disk issues,
etc.) into a hard connection error, putting the ConversationView into
LoadError state and preventing all new native agent threads from being
created.

Changed to `.log_err()` so the error is logged at ERROR level but thread
creation proceeds with `prompt_store: None`. `NativeAgent::new` already
accepts `Option<Entity<PromptStore>>` and handles `None` gracefully —
user custom prompts won't load but threads still work.

Added a regression test that serializes a stale thread ID, loads the
panel (triggering the "last active thread not found in database"
warning), then dispatches NewThread through the real NativeAgentServer
path and verifies it produces a connected thread.

Release Notes:

- Agent panel now handles filesystem errors more gracefully
2026-04-24 12:32:28 +00:00
..
2026-04-05 23:05:35 +01:00
2026-03-27 14:56:46 -07:00
2026-04-21 07:25:22 +00:00
2026-03-30 09:06:59 +00:00
2026-04-22 15:02:57 +00:00
2026-04-24 08:31:43 +00:00
2026-04-24 08:31:43 +00:00