Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: profullstack/hqsh
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: profullstack/hqsh
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: feat/shared-attach
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 14 files changed
  • 2 contributors

Commits on Oct 6, 2026

  1. hqsh 0.2.0: shared attach, like tmux (--steal, --read-only)

    Several clients can now attach to one session at once. Every client gets
    all output and any client can type; the PTY is the smallest cols and rows
    among them. --steal (-d) detaches the others (they get the new DETACHED
    frame and exit instead of reconnecting); --read-only (-r) watches only.
    
    - HELLO carries an optional flags byte after a second 0 byte; with no
      flags the HELLO is byte for byte the 0.1 one. WELCOME bit1 marks a
      shared-attach daemon. STATUS adds a client count; server list --json
      keeps "attached" and adds "clients".
    - Each client has its own writer and its own cursor into the shared ring,
      so a slow client never stalls the PTY or the others. The PTY is paced to
      the most caught-up client (2 MiB window), so a single slow client still
      gets plain backpressure as in 0.1; a client that falls off the ring or
      cannot take a frame for 5 s is dropped and resumes via the gap path.
    - ACK trims the ring only to the lowest ACK across attached clients.
    - Release workflow: one run per tag (concurrency), after v0.1.0 got two
      racing runs. CI: go test -race on Linux.
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    ralyodio and claude committed Oct 6, 2026
    Configuration menu
    Copy the full SHA
    67cc7c1 View commit details
    Browse the repository at this point in the history
Loading