Skip to content

Commit 05d4df6

Browse files
committed
fix: remove SDK gate from checkAvailability and add provider btn string
Remove getQueryFn() call from checkAvailability — CLI presence and auth status are sufficient. Add custom provider button string and spacing fix for setup screen buttons.
1 parent 636201e commit 05d4df6

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src-node/claude-code-agent.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ exports.checkAvailability = async function () {
122122
if (!claudePath) {
123123
return { available: false, claudePath: null, error: "Claude Code CLI not found" };
124124
}
125-
// Verify the SDK can be imported
126-
await getQueryFn();
127125
// Check if user is logged in
128126
let loggedIn = false;
129127
try {

src/nls/root/strings.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1843,8 +1843,9 @@ define({
18431843
"AI_CHAT_CLI_INSTALLING_MSG": "Installing Claude Code, please wait. This may take a while...",
18441844
"AI_CHAT_CLI_RESTART_NOTE": "Restart {APP_NAME} after installation completes.",
18451845
"AI_CHAT_CLAUDE_LOGIN_TITLE": "Setup Claude Code",
1846-
"AI_CHAT_CLAUDE_LOGIN_MSG": "Claude Code is installed but needs to be configured. Run the setup to sign in to your Anthropic account.",
1846+
"AI_CHAT_CLAUDE_LOGIN_MSG": "Claude Code is installed but needs to be configured.",
18471847
"AI_CHAT_CLAUDE_LOGIN_BTN": "Setup Claude Code",
1848+
"AI_CHAT_ADD_PROVIDER_BTN": "Add Custom Provider",
18481849
"AI_CHAT_RETRY": "Retry",
18491850
"AI_CHAT_DESKTOP_ONLY": "AI features require the Phoenix desktop app. Download it to get started.",
18501851
"AI_CHAT_DOWNLOAD_BTN": "Download Desktop App",

src/styles/Extn-AIChatPanel.less

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,8 +1666,9 @@
16661666
}
16671667
}
16681668

1669-
.ai-install-btn {
1670-
margin-bottom: 8px;
1669+
.ai-install-btn,
1670+
.ai-claude-login-btn {
1671+
margin-bottom: 10px;
16711672
}
16721673

16731674
.ai-install-restart-note {

0 commit comments

Comments
 (0)