opencode/packages/client/test
LukeParkerDev 1f914b5d81 fix(client): refresh only loaded catalogs on location events
Every Location booted on the server emits catalog, agent, command, skill,
reference, integration, websearch and MCP events, including Locations this
client never opened. Each event eagerly re-fetched that location's catalog,
producing request waves across hundreds of directories.

Events still invalidate so the next explicit read is fresh, but only catalogs
a consumer already read are re-fetched, mirroring the existing config.updated
guard. credential.* events apply the same rule per stored location key.

Websearch providers have no explicit reader; the TUI's integration dialog
relies on events to fill them, so that refresh is gated on the location having
been opened (syncInfo) instead of on a prior read.
2026-09-05 14:58:52 +10:00
..
fixture fix(pty): own daemon lifetime and hand off restarts (#45551) 2026-08-27 11:52:48 -04:00
api.types.ts refactor(core): decouple plugins from config loading (#46639) 2026-09-01 20:37:42 -04:00
contract-identity.test.ts feat(tui): add branch review scopes 2026-08-28 22:46:23 -04:00
effect.test.ts refactor(core): decouple plugins from config loading (#46639) 2026-09-01 20:37:42 -04:00
import-boundaries.test.ts feat(plugin): add typed rpc and custom events (#46105) 2026-08-30 21:28:19 -04:00
promise-service.test.ts fix(pty): own daemon lifetime and hand off restarts (#45551) 2026-08-27 11:52:48 -04:00
promise.test.ts feat(worktree): support configurable plugin strategies (#47358) 2026-09-04 19:07:40 -04:00
service.test.ts test(client): scope service subprocess fixtures per test (#45471) 2026-08-27 10:55:20 -04:00
shared-events.test.ts fix(app): restore terminal application mouse handling (#45140) 2026-09-03 16:39:27 +08:00
solid-compaction.test.ts feat(core): persist compaction model and provider state (#46962) 2026-09-03 12:06:50 -05:00
solid-data.test.ts refactor(client): remove redundant location spreads (#47086) 2026-09-03 12:51:12 -04:00
solid-eviction.test.ts fix(tui): limit cached non-tab session families 2026-09-01 11:14:01 -04:00
solid-pty.test.ts feat(tui): add persistent session terminals (#44971) 2026-08-26 09:30:03 -04:00
solid-refresh.test.ts fix(client): refresh only loaded catalogs on location events 2026-09-05 14:58:52 +10:00
worktree.test.ts feat(core): add directory projects (#45107) 2026-08-25 23:22:23 -04:00