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
{{ message }}
Repository navigation
OpenCode @skill: resize or a narrow redraw during Tab misreports the attachment (#1991 review follow-ups) #1992
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
fix(opencode): keep an @skill attached across a resize or a model-onl…