Skip to content

Follow-ups from the SSH and silent-terminal fix (#149) #150

Open

Description

@mohak34

Leftovers from the review of #149 (issue #147). None of them is a regression; they are gaps to check later.

  • tmux started locally, attached over SSH. The SSH check reads SSH_CONNECTION / SSH_TTY from the OpenCode process. A tmux server started on the host and later attached from SSH keeps the local environment, so the pane fallback still counts as focus and mutes alerts. Possible fix: ask tmux for the attached client's environment (tmux show-environment SSH_CONNECTION) when the process has none.
  • Silent owner terminal still wins precedence. A session's own terminal is preferred over other terminals even when its config enables no channel for the event. The claim check now skips it, but owner precedence in terminal-clients.ts still waits on it. Same as before fix(linux): bells over SSH no longer muted by tmux or silent terminals #149.
  • Sound with volume 0 counts as a channel. A terminal with sound: true and volume 0 still claims the event and plays nothing.
  • Deferred completion with every channel off. A terminal with every complete channel disabled keeps a deferred completion pending until its timeout instead of dropping it right away. Harmless, just state held longer than needed.
  • CONTRIBUTING shim recipe and quotes. The V2 shim recipe breaks if the checkout path contains a double quote.
  • SPEC suppression order. SPEC lists the suppression checks in an order that does not match the code exactly. Pre-existing.
  • Tests. No end-to-end test runs the focus check with SSH variables set in the environment; the unit test passes the flag directly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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