Skip to content

feat(cli): show a hook's person message on OpenCode through its TUI toast #1349

Done

Description

@blafourcade

Problem

A hook message meant for the person (answer({ person }) in hooks/lib/host.cjs) shows only on Claude Code and Codex (systemMessage). Elsewhere it is dropped. Per vendor docs:

  • OpenCode documents a TUI plugin API with context.ui.toast.show(...) ("Toasts support title, message, variant, and duration"), separate from the server plugin the bridge generates. Ours to wire.
  • Kilo: no toast or equivalent found in its plugin docs. Unknown.
  • Antigravity: injectSteps.errorMessage "Displays an error message without sending it to the model". It was rejected because it is styled as an error; to reconsider only for messages that are warnings.
  • Copilot CLI (hooks configuration) and Kiro document no user-visible hook output; Cursor documents user_message only on preToolUse, beforeSubmitPrompt and preCompact. Tool limits.

Proposed solution

Probe OpenCode's TUI toast from a generated TUI plugin; wire it if it shows the person text, otherwise state the limit. Record the Kilo and Antigravity conclusions in docs/COMPATIBILITY.md.

Acceptance criteria

  • OpenCode: probed, then wired and tested, or stated as a limit.
  • docs/COMPATIBILITY.md says, per host, whether the person channel exists, with a citation.

Content type

CLI

Activity

  1. blafourcade commented on Nov 25, 2026

    @blafourcade
    ContributorAuthor

    Correction after a check of the raw Copilot docs (hooks configuration): Copilot CLI does have person-visible output. Command hooks can print {"type":"progress","message":"..."} lines to the CLI timeline ("display-only", "temporary": true for a line that disappears), and on exit 2 "stderr is surfaced to the user but the run continues" (except preToolUse and permissionRequest, where exit 2 denies). Not on the cloud agent. So Copilot is ours too: the scope of this issue extends to wiring person to a progress line, after a probe confirms it shows when the hook ships in a plugin.

  2. blafourcade commented on Nov 26, 2026

    @blafourcade
    ContributorAuthor

    Delivered in #1407 (merged into next as 6f7584c): Copilot shows a hook's person message as a documented progress line, probed on Copilot CLI 1.0.114 (sessionStart, 3 of 3). docs/COMPATIBILITY.md has a Person message column with a source per host.

  3. moved this from Ideation to Done in AIDD Roadmapon Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions