Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.
TypeScript ai-agentai-resume-analyzerapplication-trackerapplication-tracking-systematscareerjob-applicationjob-automationjob-huntingjob-searchjob-seeker-toolsjob-trackerjob-trackingjobsearchjobseekersmcpollamaresumeresume-reviewself-hosted
fix: enhance chat functionality to handle approval pending state in ResumeContainer
Khuram Niaz826d513a609b
diff --git a/src/components/profile/ResumeContainer.tsx b/src/components/profile/ResumeContainer.tsxindex b989b8d..d78f755 100644--- a/src/components/profile/ResumeContainer.tsx+++ b/src/components/profile/ResumeContainer.tsx@@ -361,7 +361,8 @@ function ResumeContainer({const goBack = () => router.back();const isDefault = !!resume?.id && resume.id === defaultResumeId;const [setDefaultConfirmOpen, setSetDefaultConfirmOpen] = useState(false);- const { open: openChat, prefillComposer } = useAgentChat();+ const { open: openChat, prefillComposer, sendMessage, approvalPending } =+ useAgentChat();const parsedReviewData = useMemo(() => {if (!resume.reviewData) return null;try {@@ -770,8 +771,17 @@ function ResumeContainer({<ButtonclassName="h-8 gap-1 cursor-pointer"onClick={() => {- prefillComposer(`Review ${title}`);openChat();+ // A pending approval already owns the composer's queue slot+ // (see AgentChatInput), which this button can't reach, so it+ // falls back to prefill rather than sending underneath it.+ if (approvalPending) {+ prefillComposer(`Review ${title}`);+ } else {+ void sendMessage({+ parts: [{ type: "text", text: `Review ${title}` }],+ });+ }}}size="sm"variant="outline"