From 64f1ee7d4ea6fb0b3ca9ebbf283bb4ad54fe1bec Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Wed, 3 Dec 2025 19:09:35 +0530 Subject: [PATCH] chore: open github issue with details --- gui/src/pages/gui/StreamError.tsx | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/gui/src/pages/gui/StreamError.tsx b/gui/src/pages/gui/StreamError.tsx index c3bb95efb..7f7c32245 100644 --- a/gui/src/pages/gui/StreamError.tsx +++ b/gui/src/pages/gui/StreamError.tsx @@ -5,7 +5,7 @@ import { Cog6ToothIcon, KeyIcon, } from "@heroicons/react/24/outline"; -import { DISCORD_LINK, GITHUB_LINK } from "core/util/constants"; +import { DISCORD_LINK } from "core/util/constants"; import { useContext, useMemo } from "react"; import { GhostButton, SecondaryButton } from "../../components"; import { useEditModel } from "../../components/mainInput/Lump/useEditBlock"; @@ -290,11 +290,27 @@ const StreamErrorDialog = ({ error }: StreamErrorProps) => { { - ideMessenger.post("openUrl", GITHUB_LINK); + const issueTitle = `Error: ${selectedModel?.title || "Model"} - ${statusCode || "Unknown error"}`; + const issueBody = `**Error Details** + +Model: ${selectedModel?.title || "Unknown"} +Provider: ${selectedModel?.provider || "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); }} > - Github + Open GitHub issue