Skip to content

Conversation

@uinstinct
Copy link
Contributor

@uinstinct uinstinct commented Jan 23, 2026

Description

Save the unsubmitted input text into local storage so that it persists between reloads and page changes.

resolves CON-5281

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-review

Checklist

  • [] I've read the contributing guide
  • [] The relevant docs, if any, have been updated or created
  • [] The relevant tests, if any, have been updated or created

Screen recording or screenshot

before.mp4
after.mp4

Tests

[ What tests were added or updated to ensure the changes work as expected? ]


Continue Tasks: ▶️ 2 queued — View all


Summary by cubic

Persist unsubmitted main input drafts in local storage so text survives reloads and navigation. Drafts auto-load per chat and clear on submit or when input is empty. Resolves CON-5281.

  • New Features

    • Save main input content as JSON under inputDraft_ on change.
    • Load saved draft when the main input editor initializes.
    • Clear stored draft after successful submission or when content becomes empty.
    • Added localStorage type for inputDraft_.
  • Refactors

    • Removed the clearContent effect in TipTapEditor to prevent wiping drafts on mount.

Written for commit e2a38e3. Summary will update on new commits.

@uinstinct uinstinct requested a review from a team as a code owner January 23, 2026 05:46
@uinstinct uinstinct requested review from sestinj and removed request for a team January 23, 2026 05:46
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jan 23, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 3 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant