Cloud Agent - Add Slash Command Support#3162
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge All Fixed Issues (across all review rounds)
Other ObservationsCircular dependency resolved: DB migration squash: Branch-local migrations were squashed per AGENTS.md guidelines. The GDPR / soft-delete: The new table cascades off
Files Reviewed (incremental, 3 files)
Reviewed by claude-sonnet-4.6 · 886,363 tokens |
92ef2c5 to
121c1a9
Compare
91e551e to
2e3f27f
Compare
…payloads Add discriminated send payloads (prompt vs command) across the cloud agent stack: - Introduce ExecutionPayload union (PromptExecutionPayload | CommandExecutionPayload) in cloud-agent-next execution types. - Add dispatchToWrapper() to route prompts vs commands to the wrapper. - Add commands.available event to cache and broadcast kilo slash commands. - Update web SDK transport, session manager, and UI to handle command payloads and available commands. - Update mobile session manager and detail content for slash commands. - Remove hardcoded default-command-sets in favor of runtime catalog.
2e3f27f to
8190a61
Compare
Extract SendMessagePayload into a shared types.ts file (no server-only deps) so both web and mobile apps can import it. Add kiloCommandCount and kiloCommands to storybook mock data to match the updated ProfileSummary/ProfileDetails types. Add eventId: 0 sentinel comment in stream.ts.
Restore 0117_snapshot.json from main and regenerate the agent_environment_profile_kilo_commands migration as 0124 on top of main's latest schema. Extract SendMessagePayload into shared types.ts for cross-app use. Fix storybook mock data for new profile fields.
This branch-local migration was superseded by 0124_known_catseye.sql after regenerating on top of main's schema.
Summary
Add end-to-end slash command support across the cloud agent stack by introducing discriminated send payloads (
promptvscommand).ExecutionPayloadunion (PromptExecutionPayload|CommandExecutionPayload) anddispatchToWrapper()to route prompts vs commands to the wrapper client.commands.availableevent to cache and broadcast kilo slash commands to connecting clients. Remove hardcodeddefault-command-setsin favor of runtime catalog from kilo.Verification
Reviewer Notes
sendMessageV2tRPC method; the orchestrator branches only at the final wrapper call.modelvalidation is skipped for command payloads since kilo applies the command's ownagent/modeloverride.MetadataSchema.