Skip to content

feat(ask): list endpoint for questions#896

Merged
geoffjay merged 5 commits intoissue-872-2from
issue-871-2
Mar 29, 2026
Merged

feat(ask): list endpoint for questions#896
geoffjay merged 5 commits intoissue-872-2from
issue-871-2

Conversation

@geoffjay
Copy link
Copy Markdown
Owner

feat(ask): list endpoint for questions

feat(ask): list and get question endpoints

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 ' CLI subcommands
  • Fix broken CLI test: update TriggerResults field from tmux_sessions to checks

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
@geoffjay geoffjay merged commit 9d09bdf into issue-872-2 Mar 29, 2026
@geoffjay geoffjay deleted the issue-871-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