Skip to content

Regenerate a loaded case with its own motion and debate - #160

Merged
Programcode merged 1 commit into
mainfrom
cursor/regenerate-loaded-case-f3c6
Oct 22, 2026
Merged

Programcode merged 1 commit into
mainfrom
cursor/regenerate-loaded-case-f3c6

Conversation

@Programcode

Copy link
Copy Markdown
Owner

Loading a saved case from History showed that case, but the Generate form still held the motion typed last. Regenerating a section asked the model to rewrite the loaded case for the wrong motion. If that motion matched the debate open now, the request also used that debate's sources.

Loading a case now keeps its motion, side, and debate. Regenerating a section uses those, including after leaving the page and coming back. A case that belongs to no debate stays one-off.

Verified locally with the Generate page tests, a store test, eslint on the touched files, and tsc --noEmit -p tsconfig.app.json. GitHub Actions is not running because of the repo billing limit, so this is a local pass, not a CI pass.

Open in Web Open in Cursor 

Opening a saved case from History left the Generate form on whatever motion was typed last. Regenerating a section then rewrote that case for the wrong motion, and could pull in the current debate's sources. The loaded case now keeps its motion, side, and debate for that request.

Co-authored-by: Gáborjáni-Szabó Ádám <Programcode@users.noreply.github.com>
@vercel

vercel Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
debate-navigator Ready Ready Preview Oct 22, 2026 10:54am UTC
debatelab-staging Ready Ready Preview Oct 22, 2026 10:54am UTC

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Next included review available in 51 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
📥 Commits

Reviewing files that changed from the base of the PR and between 4f9e0a0 and 55ad91e.

📒 Files selected for processing: 4
  • src/lib/stores/session-store.ts
  • src/pages/GeneratePage.tsx
  • src/test/pages/GeneratePage.test.tsx
  • src/test/stores/load-saved-case.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Essentials by visiting https://app.coderabbit.ai/settings/billing.

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Programcode
Programcode merged commit 4f76712 into main Oct 22, 2026
7 of 15 checks passed

This branch was successfully deployed

2 active deployments
Preview – debate-navigator — 55ad91e1 Deployed Oct 22, 2026 by vercel[bot]
Preview – debatelab-staging — 55ad91e1 Deployed Oct 22, 2026 by vercel[bot]
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.

3 participants