-
Notifications
You must be signed in to change notification settings - Fork 4
feat(ui): improve log note saving and commit prefill for log notes #407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -152,6 +152,9 @@ | |
| if (latest.kind === 'note' && latest.title.toLowerCase().includes('plan')) { | ||
| return 'Implement plan'; | ||
| } | ||
| if (latest.kind === 'note' && latest.title.toLowerCase().endsWith(' log')) { | ||
|
Comment on lines
152
to
+155
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Because action names are user-defined, a saved log note can legitimately be titled something like Useful? React with 👍 / 👎. |
||
| return 'Read the latest note which contains logs. Look for any issues.'; | ||
| } | ||
|
|
||
| return ''; | ||
| }); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If an action log already contains ``````, wrapping the whole payload in another triple-fenced block here produces malformed markdown.
NoteModal.svelterenders notes with `marked`, so the first embedded fence closes the wrapper early and the remainder of the saved log is rendered as normal markdown instead of preserved verbatim. This is easy to hit with AI/CLI output that already includes fenced snippets, so some saved logs will open with truncated or reformatted content.Useful? React with 👍 / 👎.