Skip to content

fix(bookmark): truncate title to 500 chars when archiving#134

Merged
LeslieLeung merged 1 commit into
mainfrom
fix/archive-title-truncation
Jun 11, 2026
Merged

fix(bookmark): truncate title to 500 chars when archiving#134
LeslieLeung merged 1 commit into
mainfrom
fix/archive-title-truncation

Conversation

@LeslieLeung

Copy link
Copy Markdown
Owner

Summary

  • Fix StringDataRightTruncationError when archiving entries with long titles
  • Bookmark.title is VARCHAR(500) but Entry.title allows up to 1000 chars
  • Truncate title to 500 chars in create_bookmark to prevent the error

Test

  • Archive an entry with a title longer than 500 characters
  • Verify the bookmark is created successfully with truncated title

Closes #125

Entry titles can be up to 1000 chars but Bookmark.title is VARCHAR(500).
This caused StringDataRightTruncationError when archiving entries with
long titles.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@LeslieLeung LeslieLeung merged commit 63340f2 into main Jun 11, 2026
2 checks passed
@LeslieLeung LeslieLeung deleted the fix/archive-title-truncation branch June 11, 2026 10:38
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