Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): preserve composer draft during planning prompts #809

Closedthomasbrugman(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/809/headopened View on GitHub

Fixes #808

Summary

  • keep the main composer draft bound to its own state when planning questions appear
  • move pending planning custom answers into a dedicated editor inside the planning prompt UI
  • preserve pending option selection and submit/advance behavior without clearing the main input

Validation

  • bun lint (passes, with one pre-existing warning in apps/server/src/provider/Layers/ProviderService.ts:295)
  • bun typecheck (fails due to pre-existing unrelated issues in apps/web/src/components/Sidebar.tsx for missing `@dnd-kit/modules and one implicitany`)*

Note

Preserve composer draft while answering planning prompts in ChatView

  • Selecting an option or typing a custom answer for a planning prompt no longer clears or overwrites the main composer draft in ChatView.tsx.
  • Adds a dedicated ComposerPendingUserInputCard component where users answer planning questions in-place, with number-key shortcuts (1–9), auto-advance, and a per-card ComposerPromptEditor.
  • Adds a ComposerPendingUserInputPanel to host the card and wire option selection and custom-answer callbacks independently from the main composer.
  • Behavioral Change: the main composer value no longer reflects activePendingProgress.customAnswer, and planning-specific placeholder text is removed from the composer.
Macroscope summarized 0767069.
    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro

      Run ID: 5316bdfa-c970-4b16-a5f1-452aeb173d25

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests
      • Post copyable unit tests in a comment
      📝 Coding Plan
      • Generate coding plan for human review comments

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands and usage tips.

      Tip

      CodeRabbit can use your project's `biome` configuration to improve the quality of JS/TS/CSS/JSON code reviews.

      Add a configuration file to your project to customize how CodeRabbit runs biome.

    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. 💡 Codex Review

      Here are some automated review suggestions for this pull request.

      Reviewed commit: 3a8dc31399

      ℹ️ About Codex in GitHub

      Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

      • Open a pull request for review
      • Mark a draft as ready
      • Comment "@codex review".

      If Codex has suggestions, it will comment; otherwise it will react with 👍.

      Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sign in to join this conversation.