Commit 644c9af
authored
Agent search: fast recent list with lazy per-card snippet loading (#74)
* Agent search recent open state and footer hints
* Agent search global Cmd+O shortcut
* Agent search keyboard scroll follow
* recent-agents: add limit param to getRecentAgents and GET /agents/recent
- agents-db.ts: getRecentAgents(query?, limit?) applies LIMIT in SQL before returning rows
- get-recent-agents.ts: parse ?limit= query param, validate positive integer, pass to agentsDB
- Tests for both: failing first (TDD), then implementation
* recent-agents: pass limit=50 from AgentSearchDialog; add limit param to fetchRecentAgents
- agents-api.ts: fetchRecentAgents(workspaceId, query?, limit?) passes ?limit=N in URL
- AgentSearchDialog.tsx: call fetchRecentAgents with RECENT_LIMIT=50; remove client-side slice
- AgentSearchDialog.test.tsx: update assertions to match new call signature
* recent-agents: strip message loading from list endpoint; add /messages/snippet
- get-recent-agents.ts: returns DB rows only — no harness calls, no Promise.all
- get-agent-snippet.ts: new endpoint GET /agents/:id/messages/snippet, returns
lastMessageAt/lastUserMessage/lastAgentMessage for one agent
- agents.ts: register snippet route before /:id/messages to avoid Hono match order issue
- agents.recent.test.ts: remove message-context describe block, update response shape assertions
- get-agent-snippet.test.ts: new TDD tests for snippet endpoint
* Agent search: lazy-load recent snippets per visible card
* Agent search: hide unloaded recent timestamps
* WorkspaceLayout: separate palette and agent-search bindings
Prevent the user-configured command palette shortcut from being overwritten when it collides with +o. Add a regression test that verifies both shortcuts stay active when they share the same key combo.
* AgentTypeahead: lazy-load @@ snippet previews
* Change keyboard shortcuts
* Agent search: Right Shift again dismisses the peek
* Revert "Agent search: Right Shift again dismisses the peek"
This reverts commit 9e66c06.
* AgentModal: Right Shift dismisses the peek (mirrors Escape)
* Agent search: pointer-move intent gate prevents mouse hijacking keyboard selection
* docs: document Corvu mock prop forwarding and render helper side effects
* Agent search: suppress hover highlight during keyboard navigation
* Agent search: restyle footer hints — label first, key second
* Agent search: footer hints — bold action labels, mono shortcut keys
* Agent search: reorder footer hints — navigate, open, peek1 parent aa0e3c7 commit 644c9af
21 files changed
Lines changed: 1565 additions & 593 deletions
File tree
- projects/birdhouse
- docs/code-review
- frontend/src
- components
- ui
- services
- server/src
- features/api
- lib
- routes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
| |||
0 commit comments