Skip to content

fix(build): remove CodyChatPanel's dead, permanently-disabled chat input - #1035

Merged
developer-ainative merged 1 commit into
mainfrom
fix/cody-chat-during-planning
Oct 9, 2026
Merged

developer-ainative merged 1 commit into
mainfrom
fix/cody-chat-during-planning

Conversation

@developer-ainative

Copy link
Copy Markdown
Contributor

Summary

Investigated a product observation: "Cody is visible during planning, but the founder can't actually converse with Cody at that stage." Traced the real mechanism end to end before touching anything.

  • A real, functioning feedback mechanism already exists and was never the problem: CodyChatPanel.tsx's Q&A chips + free-text field (e.g. "Who feels this problem the most?") genuinely call POST /api/build/artifact with the founder's answer and regenerate the artifact — verified via the real fetch body and dispatch, not assumed. A second, broader mechanism (ArtifactFrame.tsx's "What should change?" box) covers every artifact view once it has content, via the same regeneration path.
  • The actual defect: a separate, generic chat-style <input> was rendered below the real Q&A block, hardcoded disabled with placeholder text "Guided Q&A coming soon." This is confirmed-intentional leftover scaffolding from BLD-06.1 (feat(workspace): merge phase bar + chips into one journey bar; persistent Cody chat panel #976) — meant to be wired live by BLD-06.2/06.3, but those stories (feat(cody-chat): Cody summarizes each step in plain words (BLD-06.2) #982-986, merged in feat(cody-chat): Epic 2 Wave 2 -- step summaries, Q&A revise, save/history, explain-before-build #987) shipped the real mechanism as the Q&A chips instead, and nobody removed the original placeholder. The result: a permanently-dead UI element visually promising a chat box that will never activate, sitting right next to the real (but differently-shaped) way to actually give Cody feedback — exactly what reads as "Cody is visible but you can't talk to it."

Fix

Removed the dead disabled chat input and its two now-unused CSS rules. Updated the existing BLD-06.1 test to assert the element is gone (it previously asserted "present and disabled," locking the placeholder in place) and removed its retired class names from the CSS existence-coverage test. Rewrote the module's doc comment to describe the real, current feedback mechanism instead of referencing the removed placeholder.

No new chat infrastructure was built — the real mechanism already existed and works; this only removes what was misleading about its absence.

Test plan

  • npx vitest run __tests__/components/build/CodyChatPanel.test.tsx __tests__/app/modernist-css-coverage.test.ts — 21/21 pass (TDD red confirmed first)
  • Full suite — 6874 passed, same pre-existing unrelated failures confirmed via stash comparison
  • npx tsc --noEmit — clean
  • Live dev-server smoke test through the real /build funnel (landing → start → build → intake → kickoff), zero console/page errors

The right-hand Cody panel during artifact drafting (screen=ws) had a
visible but hardcoded-disabled text input at the bottom, labeled "Guided
Q&A coming soon". It shipped as honest BLD-06.1 shell scaffolding before
any real guided conversation existed. BLD-06.2 through BLD-06.9 then
shipped the real mechanism -- per-step Q&A chips with free-text answers
that drive a real regenerate via /api/build/artifact, plus save/version
history and the explain-before-build gate -- but nothing ever retired the
original placeholder input, so it kept rendering below the now-functional
Q&A block: a dead affordance visually promising a chat box that can never
work, superseded by a real one a few lines above it.

Founders do have a real way to talk to Cody about the current artifact:
the Q&A chips + free text in this panel (for views with a question set)
and ArtifactFrame's "What should change?" feedback box (every view, once
the artifact has content) -- both reach the same feedback-driven
regeneration path. This removes only the leftover dead input and its
now-unused CSS.
@developer-ainative
developer-ainative merged commit 3faf8a2 into main Oct 9, 2026
1 check passed
@developer-ainative
developer-ainative deleted the fix/cody-chat-during-planning branch October 9, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant