Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

Summary

Standardizes naming conventions across TinyBase persisters for better consistency and maintainability. Also adds documentation to AGENTS.md describing the persister patterns and conventions.

Naming changes:

  • parseGroupIdFromPathparseChatGroupIdFromPath (matches parseSessionIdFromPath)
  • loadAllChatDataloadAllChatGroups (clearer entity name)
  • createEmptyLoadedDatacreateEmptyLoadedChatData (matches pattern)
  • SessionDataLoadLoadedSessionData (matches LoadedChatData)
  • createEmptyResultcreateEmptyLoadedSessionData (matches pattern)

Type additions:

  • Added ChatChangeResult type to match session's ChangeResult pattern

Review & Testing Checklist for Human

  • Verify getChangedChatGroupIds behavioral change: The function now returns ChatChangeResult object instead of Set<string>, and adds hasUnresolvedDeletions tracking when a message lacks a chat_group_id. Confirm this doesn't change expected behavior in edge cases.
  • Check for any missed references: All renames were done via search/replace - verify no other code references the old function/type names.
  • Review AGENTS.md documentation: Confirm the documented patterns, startup modes, and conventions accurately reflect the codebase.

Suggested test plan: Run the desktop app locally and verify chat persistence still works correctly (create chat groups, add messages, restart app, verify data persists).

Notes

Requested by @yujonglee

Link to Devin run: https://app.devin.ai/sessions/b0e236b3c1b24a38909129cab528c812

…tion

- Rename parseGroupIdFromPath to parseChatGroupIdFromPath in chat/changes.ts
- Rename loadAllChatData to loadAllChatGroups in chat/load.ts
- Rename createEmptyLoadedData to createEmptyLoadedChatData in chat/load.ts
- Rename SessionDataLoad to LoadedSessionData in session/load.ts
- Rename createEmptyResult to createEmptyLoadedSessionData in session/load.ts
- Add ChatChangeResult type to chat/changes.ts for consistency with session pattern
- Update AGENTS.md with persister naming conventions, startup modes, and error handling patterns

Co-Authored-By: yujonglee <[email protected]>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@netlify
Copy link

netlify bot commented Jan 10, 2026

Deploy Preview for hyprnote canceled.

Name Link
🔨 Latest commit e2aabc6
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/6961c7a35414d7000885e445

@netlify
Copy link

netlify bot commented Jan 10, 2026

Deploy Preview for hyprnote-storybook canceled.

Name Link
🔨 Latest commit e2aabc6
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/6961c7a44b97940008a01ca8

@netlify
Copy link

netlify bot commented Jan 10, 2026

Deploy Preview for howto-fix-macos-audio-selection canceled.

Name Link
🔨 Latest commit e2aabc6
🔍 Latest deploy log https://app.netlify.com/projects/howto-fix-macos-audio-selection/deploys/6961c7a49edaee0008ec7414

@yujonglee yujonglee merged commit 03e8626 into main Jan 10, 2026
21 of 22 checks passed
@yujonglee yujonglee deleted the devin/1768015396-persister-consistency branch January 10, 2026 03:51
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.

2 participants