Skip to content

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

Closed
Githubguy132010 wants to merge 1 commit intopingdotgg:mainfrom
Githubguy132010:fix/preserve-composer-during-planning
Closed

fix(web): preserve composer draft during planning prompts#809
Githubguy132010 wants to merge 1 commit intopingdotgg:mainfrom
Githubguy132010:fix/preserve-composer-during-planning

Conversation

@Githubguy132010
Copy link

@Githubguy132010 Githubguy132010 commented Mar 10, 2026

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 implicit any)

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.

@coderabbitai
Copy link

coderabbitai bot commented Mar 10, 2026

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.

@github-actions github-actions bot added the vouch:unvouched PR author is not yet trusted in the VOUCHED list. label Mar 10, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@Githubguy132010 Githubguy132010 force-pushed the fix/preserve-composer-during-planning branch from dc725a6 to 12520ca Compare March 14, 2026 14:44
@github-actions github-actions bot added the size:XXL 1,000+ changed lines (additions + deletions). label Mar 14, 2026
@Githubguy132010 Githubguy132010 force-pushed the fix/preserve-composer-during-planning branch from 12520ca to 0767069 Compare March 14, 2026 14:53
@Githubguy132010 Githubguy132010 deleted the fix/preserve-composer-during-planning branch March 14, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL 1,000+ changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Textarea being reset

1 participant