Skip to content

OpenCode @skill: resize or a narrow redraw during Tab misreports the attachment (#1991 review follow-ups) #1992

Closed

Description

@devswha

Follow-ups from the Codex review of #1991 (#1493). These reproduce the same way on main; that PR does not change them.

Reproduced through typeWithSkills (server/opencode-skill-attach.ts) with scripted ANSI screens and the recorded 2.0.32 fixtures:

  • A resize during Tab reports an attached skill as missed. With opencode-autocomplete-2.0.32-ansi-first-selected before Tab and ...-ansi-narrow-accepted after it (and the reverse), the skill is attached but reported missed and the rest is sent as plain text with the not-attached note. This fails safe (nothing is sent twice), but the note is wrong.
  • A narrow redraw that drops the agent label reports an attached skill as missed. When the status row after Tab shows only the model, skillAccepted cannot match the agent and the attached skill is reported missed.
  • The same narrow redraw with matching input and padding colours breaks input/record parity. The separator Tab inserted cannot be told from the padding, so a space is typed again: the input holds @effect go, the record @effect go.

Related: on a narrow model-only status row an agent switch cannot be seen at all, so the send goes on as an unconfirmed skill (stated in #1991's changelog wording).

Possible direction: anchor the agent check on the identity read before Tab only when the row after Tab still names an agent, and treat an ambiguous separator (input foreground equal to the padding's) as unconfirmed rather than as no space.

Activity

  1. added a commit that references this issue on Oct 28, 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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions