Skip to content

fix(prompt): strip Anthropic API key env vars in Claude CLI and improve Windows 11 repo picker UX - #1

Merged
gaffercode merged 2 commits into
mainfrom
fix/claude-cli-env-and-repo-ux
Dec 2, 2026
Merged

gaffercode merged 2 commits into
mainfrom
fix/claude-cli-env-and-repo-ux

Conversation

@gaffercode

@gaffercode gaffercode commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Strip ANTHROPIC_API_KEY and ANTHROPIC_AUTH_TOKEN in ClaudeCliProvider (�uildClaudeCliEnv) so CLAUDE_CLI always uses the active Claude CLI subscription cleanly even when stale API keys exist in env, with regression unit tests.
  • Improve Windows 11
    epo pick cursor/focus handling (disable HideCursorWhileTyping, unparented folder picker, focus restoration) and expand startup command hints.
  • Confirmed zero .env* files or secrets included.

Verification

  • Full Vitest suite passed (28 files / 241 tests)
  • ESLint & TypeScript ( sc --noEmit + sc -p tsconfig.desktop.json --noEmit) passed
  • Desktop build & isolated Electron smoke test passed

Devin Review

@gaffercode
gaffercode merged commit a192255 into main Dec 2, 2026
1 check passed
@gaffercode
gaffercode deleted the fix/claude-cli-env-and-repo-ux branch December 2, 2026 05:26

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

Devin Review

Comment on lines +3926 to +3931
display?.addEventListener('click', (event) => {
if (!(event.target instanceof HTMLElement)) return
if (event.target.closest('button, a, input, .tx-action')) return
const selection = window.getSelection()
if (selection && !selection.isCollapsed) return
restoreInputFocus()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Posisi riwayat hilang saat diklik

Saat pengguna mengklik teks lama tanpa menyeleksinya, restoreInputFocus menggeser tampilan ke prompt. Prompt berada di akhir transcript, jadi output yang sedang dibaca keluar dari layar.

Learn more

Transcript adalah area yang dapat di-scroll (aturan transcript), dengan prompt sebagai baris terakhir. Klik biasa pada teks lama mengambil fokus dari input dan tidak menghasilkan seleksi. Listener lalu memanggil restoreInputFocus, yang meminta fokus tanpa preventScroll; Chromium menggulir input kembali ke area yang terlihat.

Example: Jalankan help, scroll ke baris pertama daftar perintah hingga prompt tidak terlihat, lalu klik sekali pada salah satu deskripsi. Transcript kembali ke prompt dan meninggalkan posisi baca pengguna.

Recommended fix: Teruskan opsi { preventScroll: true } dari listener click dan gunakan opsi itu pada panggilan focus() langsung maupun yang tertunda. Uji di Electron bahwa input menerima fokus tanpa mengubah scrollTop transcript.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

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