Skip to content

fix Claude Code sign-in edge cases and stabilize the e2e suite#253

Merged
jorgefilipecosta merged 1 commit into
trunkfrom
fix-signin-and-e2e
May 22, 2026
Merged

fix Claude Code sign-in edge cases and stabilize the e2e suite#253
jorgefilipecosta merged 1 commit into
trunkfrom
fix-signin-and-e2e

Conversation

@jorgefilipecosta
Copy link
Copy Markdown
Member

Summary

Two fix sets that accumulated on this branch.

Claude Code sign-in

  • Fix the terminal sign-in command failing when the app path contains spaces.
  • Auto-refresh the Claude auth status after a terminal sign-in completes.

E2E suite stabilization

  • selection-menu: update a stale placeholder assertion — the composer placeholder is now "Ask for an edit on this file…" since the chat panel became view-agnostic in Add quick actions to editor chat, make DraftChatPanel view-agnostic #219.
  • formatting-toolbar: the arrow-traversal test read activeElement synchronously, before the title's requestAnimationFrame-deferred focus move into the editor; it now polls.
  • project-checks: the test clicked the already-active sidebar tab, which toggles the panel shut, collapsing its rows to width: 0; it now clicks the rail tab only when it isn't already active.
  • global-setup: kill any process running from this worktree's out/ before packaging, so a leaked Electron app from a crashed run can't make the ad-hoc codesign fail and abort every subsequent run.

Test plan

  • npx playwright test tests/e2e/selection-menu.spec.ts tests/e2e/formatting-toolbar.spec.ts tests/e2e/project-checks.spec.ts — all green
  • npx playwright test tests/e2e/agent.spec.ts — green (needs ANTHROPIC_API_KEY)

Known issue, intentionally not fixed here

back-from-editor.spec.ts › "opening another draft while already in the editor" is left failing on purpose. It catches a real product race: when a draft whose filename doesn't match its title is open, its auto-rename onRelPathChanged can resolve after the user opens a different draft and clobber that draft's relPath. Pinning autoRename: false in the test would only mask it, so the bug is tracked separately instead.

selection-menu, formatting-toolbar and project-checks each failed on a
test-side issue: a stale placeholder assertion, a focus check that raced
the title's requestAnimationFrame, and an assumption that clicking the
active sidebar tab keeps the panel open. global-setup now kills any
process from this worktree's out/ before packaging so a leaked app from
a crashed run can't make codesign fail and abort the whole next run.
@jorgefilipecosta jorgefilipecosta merged commit 995f25f into trunk May 22, 2026
1 check passed
@jorgefilipecosta jorgefilipecosta deleted the fix-signin-and-e2e branch May 22, 2026 17:56
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