Skip to content

fix(desktop): restore slash autocomplete after query edits#629

Merged
huntharo merged 1 commit into
mainfrom
codex/fix-slash-autocomplete-dismissal
Jun 2, 2026
Merged

fix(desktop): restore slash autocomplete after query edits#629
huntharo merged 1 commit into
mainfrom
codex/fix-slash-autocomplete-dismissal

Conversation

@huntharo
Copy link
Copy Markdown
Contributor

@huntharo huntharo commented Jun 2, 2026

Summary

  • Clear stale slash/skill autocomplete dismissal state once the user edits away from the dismissed query.
  • Add a regression for dismissing /re, editing back to /r, then returning to /re so /review stays visible.

Root Cause

Slash autocomplete stored an exact dismissed key such as slash:0:3:/re. Editing to /r produced a different key and reopened the popup, but typing /re again matched the stale dismissed key and suppressed the Commands list even though /review still matched.

Validation

  • pnpm test apps/desktop/src/renderer/src/features/composer/__tests__/composer.test.tsx -t "reopens slash autocomplete"
  • pnpm test apps/desktop/src/renderer/src/features/composer/__tests__/composer.test.tsx -t "slash review|slash autocomplete|slash commands|compact slash|provider-native skill commands"
  • pnpm test apps/desktop/src/renderer/src/features/composer/__tests__/composer.test.tsx
  • pnpm --filter @pwragent/desktop typecheck

@huntharo huntharo marked this pull request as ready for review June 2, 2026 15:03
@huntharo huntharo merged commit 83da023 into main Jun 2, 2026
6 checks passed
@huntharo huntharo deleted the codex/fix-slash-autocomplete-dismissal branch June 2, 2026 23:32
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.

1 participant