Skip to content

test(nushell): reedline worktree tab-completion test fails on nu 0.116.1 #83

Open

Description

@benbenbang

Problem

nushell_reedline_inserts_and_executes_quoted_worktree_paths (tests/worktree_space_cross_shell.rs:176) fails locally on every run, while CI passes.

AssertionError: {'buffer': 'cd -jw', 'cwd': ".../cj-nu-worktree-tab-pty-<pid>-0/repo with a ' quote 雪 [dir] $()/nested", 'history': []}

The PTY sends cd -jw<Tab>, but the buffer is never completed to the quoted worktree path, so assert str(repo) in row["buffer"] fails.

Evidence

Local CI (pull-request.yml:67)
nushell 0.116.1 0.115.1 (pinned)
OS macOS 27.0.1 runner
Result fails 3/3 on main @ 7fca18a (also on c984df6) passes (e.g. PR #82)

The test is deterministic locally (not flaky), and the failure is independent of #81 / #82.

Likely cause

A reedline / completion behaviour change between nu 0.115 and 0.116 (completer not invoked, or the -jw flag completion handled differently). Not yet confirmed.

Impact

Acceptance

  • Reproduce with nu 0.116.1 and identify the change.
  • Fix the nushell integration (or the test, if only the PTY harness is affected) so it passes on both 0.115.x and 0.116.x.
  • Consider bumping the pinned CI nu version so CI catches this.

Activity

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