storkit: merge 449_bug_oauth_callback_url_ignores_port_cli_flag
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user