feat: wire up selected_template_id as default enhance template#4124
Merged
yujonglee merged 3 commits intofastrepl:mainfrom Feb 21, 2026
Merged
feat: wire up selected_template_id as default enhance template#4124yujonglee merged 3 commits intofastrepl:mainfrom
yujonglee merged 3 commits intofastrepl:mainfrom
Conversation
The `selected_template_id` field exists in ConfigGeneral but was never read by the frontend. This wires it up so users can set a default template that applies to all new summaries without manual selection. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
✅ Deploy Preview for hyprnote ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for hyprnote-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
Contributor
|
@quintusman thank you for help! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
selected_template_idfield already exists inConfigGeneral(Rust backend) but was never read by the desktop frontendtemplateIdthrough enhance task args — no hidden fallbacks in the transform layerChanges
settings.ts: Addselected_template_idto the TinyBase settings store mapping (path:general.selected_template_id)useEnhancedNotes.ts: Passselected_template_idwhen creating the default summary noteautoEnhance/runner.ts: Readselected_template_idfrom settings; pass it when creating note and in enhance task argsoptions-menu.tsx: Readselected_template_idfrom settings; pass it when creating note and in enhance task args (file upload → enhance flow)enhance-error.tsx: Readtemplate_idfrom the enhanced note for retry, so retries preserve the original templateheader.tsx(useEnhanceLogic): Readtemplate_idfrom the enhanced note; use as fallback when regeneratingHow to use
Users can set
selected_template_idin their settings (via the settings panel or by editingsettings.json):{ "general": { "selected_template_id": "<template-uuid>" } }All new summaries will then use that template's sections instead of the generic AI-chosen structure.
Review & Testing Checklist for Human
This is a medium-risk change — multiple call sites modified, no automated tests, and behavior depends on runtime store state.
selected_template_idin settings to a valid template UUID, record a meeting, and verify auto-enhance uses the selected template's sectionsselected_template_idset, behavior is unchanged (generic summary)Notes
templateId— no hidden fallbacks inenhance-transform.tsLink to Devin run: https://app.devin.ai/sessions/dfab59b71c694f109b50adaa73ab8895
Requested by: @yujonglee