storkit: merge 449_bug_oauth_callback_url_ignores_port_cli_flag

This commit is contained in:
dave
2026-03-31 14:52:18 +00:00
parent dc4bac3a85
commit 57e0197d75
7 changed files with 44 additions and 8 deletions
+6 -1
View File
@@ -66,7 +66,12 @@ describe("App", () => {
mockedApi.getAnthropicApiKeyExists.mockResolvedValue(false);
mockedApi.getAnthropicModels.mockResolvedValue([]);
mockedApi.getModelPreference.mockResolvedValue(null);
mockedApi.getOAuthStatus.mockResolvedValue({ authenticated: false, expired: false, expires_at: 0, has_refresh_token: false });
mockedApi.getOAuthStatus.mockResolvedValue({
authenticated: false,
expired: false,
expires_at: 0,
has_refresh_token: false,
});
});
async function renderApp() {
+5 -1
View File
@@ -168,7 +168,11 @@ interface ChatProps {
oauthStatus?: OAuthStatus | null;
}
export function Chat({ projectPath, onCloseProject, oauthStatus = null }: ChatProps) {
export function Chat({
projectPath,
onCloseProject,
oauthStatus = null,
}: ChatProps) {
const { messages, setMessages, clearMessages } = useChatHistory(projectPath);
const [loading, setLoading] = useState(false);
const [model, setModel] = useState("claude-code-pty");
+5 -1
View File
@@ -349,7 +349,11 @@ export function ChatHeader({
type="button"
title="Authenticate with Claude via OAuth"
onClick={() => {
window.open("/oauth/authorize", "_blank", "noopener,noreferrer");
window.open(
"/oauth/authorize",
"_blank",
"noopener,noreferrer",
);
}}
style={{
padding: "6px 12px",
@@ -66,7 +66,11 @@ export function SelectionScreen({
<button
type="button"
onClick={() => {
window.open("/oauth/authorize", "_blank", "noopener,noreferrer");
window.open(
"/oauth/authorize",
"_blank",
"noopener,noreferrer",
);
}}
style={{
padding: "8px 16px",
@@ -78,7 +82,9 @@ export function SelectionScreen({
fontSize: "0.9em",
}}
>
{oauthStatus.expired ? "Re-authenticate with Claude" : "Login with Claude"}
{oauthStatus.expired
? "Re-authenticate with Claude"
: "Login with Claude"}
</button>
) : (
<span