fix(gui): remove GitHub issue reporting entrypoints (#12816)

* fix(gui): remove GitHub issue reporting entrypoints

Co-authored-by: Cursor <cursoragent@cursor.com>

* style(gui): format stream error dialog

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(vscode): restore package metadata

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(gui): keep generic issue links

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Nate Sesti 2026-06-18 17:21:52 -07:00 • committed by GitHub
parent f0df398c9d
commit d0a3c0b626
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 113 deletions

View file

@ -1,62 +0,0 @@
import { ChatMessage, SlashCommand } from "../../../index.js";
import { removeQuotesAndEscapes } from "../../../util/index.js";
import { renderChatMessage } from "../../../util/messageContent.js";
const PROMPT = (
input: string,
title: string,
) => `You will be asked to generate the body of a GitHub issue given a user request. You should follow these rules:
- Be descriptive but do not make up details
- If the the user request includes any code snippets that are relevant, reference them in code blocks
- Describe step by step how to reproduce the problem
- Describe the ideal solution to the problem
- Describe the expected behavior after the issue has been resolved
- This issue will be read by a team member
- Use markdown formatting, but you do not need to surround the entire body with triple backticks
{additional_instructions}
Here is the user request: '${input}'
Title: ${title}
Body:\n\n`;
const DraftIssueCommand: SlashCommand = {
name: "issue",
description: "Draft a GitHub issue",
run: async function* ({ input, llm, history, params, abortController }) {
if (params?.repositoryUrl === undefined) {
yield "This command requires a repository URL to be set in the config file.";
return;
}
let title = await llm.complete(
`Generate a title for the GitHub issue requested in this user input: '${input}'. Use no more than 20 words and output nothing other than the title. Do not surround it with quotes. The title is: `,
new AbortController().signal,
{ maxTokens: 30 },
);
title = `${removeQuotesAndEscapes(title.trim())}\n\n`;
yield title;
let body = "";
const messages: ChatMessage[] = [
...history.filter((msg) => msg.role !== "system"),
{ role: "user", content: PROMPT(input, title) },
];
for await (const chunk of llm.streamChat(
messages,
abortController.signal,
)) {
body += chunk.content;
yield renderChatMessage(chunk);
}
const url = `${params.repositoryUrl}/issues/new?title=${encodeURIComponent(
title,
)}&body=${encodeURIComponent(body)}`;
yield `\n\n[Link to draft of issue](${url})`;
},
};
export default DraftIssueCommand;

View file

@ -5,14 +5,12 @@ import {
} from "../../..";
import GenerateTerminalCommand from "./cmd";
import CommitMessageCommand from "./commit";
import DraftIssueCommand from "./draftIssue";
import HttpSlashCommand from "./http";
import OnboardSlashCommand from "./onboard";
import ReviewMessageCommand from "./review";
import ShareSlashCommand from "./share";
const LegacyBuiltInSlashCommands: SlashCommand[] = [
DraftIssueCommand,
ShareSlashCommand,
GenerateTerminalCommand,
HttpSlashCommand,

View file

@ -7,15 +7,6 @@ import {
} from "@heroicons/react/24/outline";
import { useContext, useMemo } from "react";
const DISCUSSIONS_LINK = "https://github.com/continuedev/continue/discussions";
function GithubIcon({ className }: { className?: string }) {
return (
<svg className={className} fill="currentColor" viewBox="0 0 24 24">
<path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z" />
</svg>
);
}
import { GhostButton } from "../../components";
import { useEditModel } from "../../components/mainInput/Lump/useEditBlock";
import { useMainEditor } from "../../components/mainInput/TipTapEditor";
@ -302,46 +293,6 @@ const StreamErrorDialog = ({ error }: StreamErrorProps) => {
</ToggleDiv>
</div>
)}
<div>
<span className="text-base font-medium">Report this error</span>
<div className="mt-2 flex flex-row flex-wrap items-center gap-2">
<GhostButton
className="flex flex-row items-center gap-2 rounded px-3 py-1.5"
onClick={() => {
const issueTitle = `Error: ${selectedModel?.title || "Model"} - ${statusCode || "Unknown error"}`;
const issueBody = `**Error Details**
Model: ${selectedModel?.title || "Unknown"}
Provider: ${selectedModel?.underlyingProviderName || "Unknown"}
Status Code: ${statusCode || "N/A"}
**Error Output**
\`\`\`
${parsedError}
\`\`\`
**Additional Context**
Please add any additional context about the error here
`;
const url = `https://github.com/continuedev/continue/issues/new?title=${encodeURIComponent(issueTitle)}&body=${encodeURIComponent(issueBody)}`;
ideMessenger.post("openUrl", url);
}}
>
<GithubIcon className="h-5 w-5" />
<span className="xs:flex hidden">Open GitHub issue</span>
</GhostButton>
<GhostButton
className="flex flex-row items-center gap-2 rounded px-3 py-1.5"
onClick={() => {
ideMessenger.post("openUrl", DISCUSSIONS_LINK);
}}
>
<GithubIcon className="h-5 w-5" />
<span className="xs:flex hidden">Discussions</span>
</GhostButton>
</div>
</div>
</div>
);
};