Skip to content

Decouple tinybase from UI code#5077

Closed
yujonglee wants to merge 14 commits intomainfrom
decouple-tinybase-from-ui-code
Closed

Decouple tinybase from UI code#5077
yujonglee wants to merge 14 commits intomainfrom
decouple-tinybase-from-ui-code

Conversation

@yujonglee
Copy link
Copy Markdown
Contributor

No description provided.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 17, 2026

Deploy Preview for char-cli-web canceled.

Name Link
🔨 Latest commit 4515afa
🔍 Latest deploy log https://app.netlify.com/projects/char-cli-web/deploys/69e3adad58a90400083d3baa

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 17, 2026

Deploy Preview for hyprnote canceled.

Name Link
🔨 Latest commit 4515afa
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/69e3adadab5822000873ccf8

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 17, 2026

Deploy Preview for unsigned-char ready!

Name Link
🔨 Latest commit 4515afa
🔍 Latest deploy log https://app.netlify.com/projects/unsigned-char/deploys/69e3adad3a57af0007f43bb5
😎 Deploy Preview https://deploy-preview-5077--unsigned-char.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread apps/desktop/src/session/hooks/storage.ts Outdated
Comment thread apps/desktop/src/chat/hooks/chat-store.ts Outdated
Comment thread .oxlintrc.json
@yujonglee yujonglee force-pushed the decouple-tinybase-from-ui-code branch from de23e9f to f0547e9 Compare April 18, 2026 10:03
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 18, 2026

Deploy Preview for fastrepl ready!

Name Link
🔨 Latest commit 4515afa
🔍 Latest deploy log https://app.netlify.com/projects/fastrepl/deploys/69e3adadcfcebe0008a8d82f
😎 Deploy Preview https://deploy-preview-5077--fastrepl.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread apps/desktop/src/chat/hooks/chat-store.ts Outdated
Comment thread apps/desktop/src/main2/home/note-editor-runtime.ts
Comment thread apps/desktop/src/main/lifecycle.tsx
Comment thread apps/desktop/src/chat/hooks/context-renderers.ts Outdated
Comment thread apps/desktop/src/chat/tools/search-sessions.ts
Comment thread apps/desktop/src/main/lifecycle.tsx
Comment thread apps/desktop/src/calendar/hooks.ts Outdated
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 4515afa. Configure here.

}

return createMissing
? getOrCreateSessionForEventId(store, eventId, event.title as string)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Render-phase initialization retries on every render when store unavailable

Low Severity

The old guard if (!initialContentRef.current && store) ensured render-time initialization only ran when the store was ready. The new code drops the store check: if dailyNoteRuntime.initializeContent returns null (because the store is undefined), initialContentRef.current stays falsy, causing the initialization to re-execute on every subsequent render until the store becomes available. While functionally self-correcting, this creates unnecessary work during the initial renders when the store hasn't loaded yet, including redundant calls to all the argument-building logic (eventIds, sessionIds, taskStorage, etc.) each time.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 4515afa. Configure here.

@yujonglee
Copy link
Copy Markdown
Contributor Author

decided to split PR

@yujonglee yujonglee closed this Apr 19, 2026
@yujonglee yujonglee deleted the decouple-tinybase-from-ui-code branch April 19, 2026 12:06
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