Skip to content

Implement nudge: send message to active agent from ClawView #116

@jakzilla

Description

@jakzilla

Feature Spec

Allow the user to send a brief nudge message to an active agent directly from the ClawView popover.

UI

  • A Nudge button on each active agent card (only visible when agent status == 'active')
  • Tapping it sends the default nudge message to the agent
  • A confirmation toast appears: "Nudged Linus ✓" (2 second auto-dismiss)
  • If the request fails: "Nudge failed" toast in red

API (Gateway — must be implemented first)

POST /api/sessions/:agentId/nudge
Body: { "message": "Jack wants to know your status." }
Response: { "ok": true } or { "ok": false, "error": "..." }

The Gateway routes the nudge to the named agent's active session as a new user message.

Default nudge message

"Jack wants to check in — what are you working on right now? Brief update please."

Blocked by

  • Gateway must implement POST /api/sessions/:agentId/nudge endpoint

Implementation notes

  • Button: small secondary style, bottom-right of agent card, only shown for active agents
  • Use async/await with a 5s timeout; show error toast if timeout exceeded
  • No confirmation dialog — tap once to nudge (low stakes action)

Priority

Enhancement · V2 · Blocked on Gateway

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions