Skip to content

Fix cursorless Generate Thought test setup - #4978

Merged
raineorshine merged 1 commit into
cybersemics:mainfrom
marcus-pousette:test/fix-cursorless-generate-thought
Aug 18, 2026
Merged

Fix cursorless Generate Thought test setup#4978
raineorshine merged 1 commit into
cybersemics:mainfrom
marcus-pousette:test/fix-cursorless-generate-thought

Conversation

@marcus-pousette

Copy link
Copy Markdown
Contributor

Problem

#4936 added a cursorless-multiselect test that calls cursorBack() after creating the multicursor selection. #4938 merged first and changed Back to operate on the multicursor selection; for root-level selections it intentionally does nothing, so the hidden cursor remains set.

This causes the current main Test workflow and unrelated PRs such as #4972 to fail at the same assertion:

Solution

Construct the supported cursorless multiselect directly with setCursor(null) before adding the multicursors. This keeps the test focused on Generate Thought rather than depending on Back semantics.

Verification

  • yarn test --run src/commands/__tests__/generateThought.ts — 14/14 passed
  • yarn eslint src/commands/__tests__/generateThought.ts
  • yarn prettier --check src/commands/__tests__/generateThought.ts
  • yarn lint:tsc --pretty false

Construct the cursorless multiselect directly instead of relying on cursorBack, whose multicursor behavior changed before the test merged.\n\nCo-Authored-By: Codex GPT-5 (unknown context) <noreply@openai.com>

@raineorshine raineorshine left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@raineorshine
raineorshine merged commit d95ce67 into cybersemics:main Aug 18, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants