You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: human-in-the-loop support with AskUserQuestion (#871)
## Summary
- **AskUserQuestion UI**: Interactive question component with
single/multi-select options, freeform "Other" input, and multi-question
tabbed navigation
- **Agent status from event log**: Derive `agentStatus` at query time
from persisted AG-UI events instead of caching on the CR (eliminates
goroutine race conditions)
- **Frontend status fix**: `useAgentStatus` hook reads raw
`PlatformMessage.toolCalls[]` format, correctly detecting unanswered
AskUserQuestion tool calls
- **TOOL_CALL_RESULT emission**: Adapter emits `TOOL_CALL_RESULT` on
next run for halted tool calls so the frontend transitions questions to
answered state
- **Session status indicators**: `SessionStatusDot` and
`AgentStatusIndicator` components for detail and table views
- **CRD cleanup**: Removed `agentStatus` field from CRD schema — no
longer stored, only derived
Supersedes #725.
## Test plan
- [ ] Create session, send prompt that triggers AskUserQuestion
- [ ] Verify question UI appears with options
- [ ] Verify session table shows `waiting_input` status
- [ ] Verify detail page shows `waiting_input` status
- [ ] Submit answer, verify question transitions to answered (green)
state
- [ ] Verify agent resumes after answer
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Ambient Code Bot <bot@ambient-code.local>
Co-authored-by: ambient-code[bot] <ambient-code[bot]@users.noreply.github.com>
0 commit comments