Skip to content

feat(ask): extensible check type registry#895

Merged
geoffjay merged 8 commits intoissue-870-2from
issue-872-2
Mar 29, 2026
Merged

feat(ask): extensible check type registry#895
geoffjay merged 8 commits intoissue-870-2from
issue-872-2

Conversation

@geoffjay
Copy link
Copy Markdown
Owner

feat(ask): extensible check type registry

feat(ask): extensible check type registry (#872)

Add GET /questions and GET /questions/:id API endpoints to the ask
service, with corresponding client methods and CLI subcommands.

- Add ListQuestionsQuery and ListQuestionsResponse types
- Add get_all_questions() and get_questions_by_status() to AppState
- Add GET /questions[?status=] and GET /questions/:id handlers in api.rs
- Add list_questions() and get_question() methods to AskClient
- Add 'agentd ask list [--status]' and 'agentd ask get <id>' CLI subcommands
- Fix broken CLI test: update TriggerResults field from tmux_sessions to checks
Add 15 new integration tests covering the list/get endpoints, check
registry behaviour, full trigger->list->answer flow, and AskClient
methods exercised against a live in-process router.

Also fix the /questions/{id} route syntax (Axum v0.8 uses {param} not
:param) and repair the pre-existing test that asserted tmux_sessions
appeared in checks_run when the registry was empty.
@geoffjay
Copy link
Copy Markdown
Owner Author

test(ask): expand integration test coverage
feat(ask): list endpoint for questions
@geoffjay geoffjay merged commit 9dfc72c into issue-870-2 Mar 29, 2026
@geoffjay geoffjay deleted the issue-872-2 branch March 29, 2026 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant