Skip to content

Follow-ups from #425-#429: gone client's request runs, close-order cursor, new-tab terminal width #430

Closed

Description

@ThomasK33

Verification of #425 to #429 (the fixes for #424) found these. Each one is on main before those PRs too, or is a narrow case the PRs did not claim to cover. Items 1 to 3 change behavior a user can see. Items 4 and 5 are cosmetic.

  1. A request from a client that has gone still runs (fix(server): keep the libuv error and the level in a cut line, and answer a handshake once #428). A client that sends its upgrade request plus a request and then closes still has that request run after it is gone. With a tools/call openFile sent this way, the file opens. The client must hold the auth token.
  2. Cursor after :ClaudeCodeCloseAllDiffs (fix(diff): keep the terminal width the user chose and put the cursor back when a diff closes #429). With a second diff in its own tab, where the cursor ends depends on close order, because the command closes diffs in pairs() order. With keep_terminal_focus = true and no visible terminal, the cursor now returns to the origin window. Neither case is documented.
  3. open_in_new_tab terminal width (fix(diff): keep the terminal width the user chose and put the cursor back when a diff closes #429). A Claude terminal the user resized still comes back at its idle width after a new-tab diff closes.
  4. Server lines (fix(server): keep the libuv error and the level in a cut line, and answer a handshake once #428). When the server stops while a 101 reply is pending, the client gets EOF without a Close frame. At 80 columns the all-ports-busy line ends in ser....
  5. Tests (test: give each test block its own temp folder, and cover a flagged test that calls pending() #427). Two spec files keep their own copy of a shell-quote function. os.tmpname() writes go to /tmp, not to TMPDIR.

Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

Activity

  1. added
    needs-triage
    on Nov 1, 2026
  2. ThomasK33 commented on Nov 1, 2026

    @ThomasK33
    MemberAuthor

    All items are handled on main:

    1. Items 1, 4 and 5 (gone client's request, Close on stop, startup line, test helpers): fix(server): run no request from a client that has gone, close an upgrading client with 1001, fit the startup line #431, merged as 6714ed5. A request from a client that left during its upgrade no longer runs. A server stop during a pending 101 sends Close 1001. The startup error fits one line at 80 columns.
    2. Items 2 and 3 (bulk-close cursor, new-tab terminal width): fix(diff): close bulk diffs newest first, and keep the terminal width after a diff in its own tab #432, merged as 9c11940. Bulk closes go newest first, so the cursor ends where it was before the oldest diff. A diff in its own tab no longer resets the Claude terminal width.

    The independent verification of both PRs found no further bug a user can hit in normal use. One documented limit remains: :ClaudeCodeCloseAllDiffs orders diffs newest first only within each status (pending, rejected, accepted).

    This closes the chain of follow-up issues that started with #326.


    Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

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

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions