-
Notifications
You must be signed in to change notification settings - Fork 537
Usechat fix 0924 #1494
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
Merged
Merged
Usechat fix 0924 #1494
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
9d4d8c5
db layout for new chat
duckduckhero 774e81d
before making thinking indicator fix
duckduckhero cdb8d11
wip
duckduckhero a69b3d5
fixed thinking indicator issue
duckduckhero fb434de
merged
duckduckhero 0109188
fixed minor styling issues
duckduckhero 3bc71b4
added pro gating
duckduckhero 209fae2
with debug prints
duckduckhero 3e5962f
removed prints
duckduckhero ad6a2c6
wip
duckduckhero a8ec1ed
fixed some issues
duckduckhero 771bafc
ran tests
duckduckhero f9306ae
merged?
duckduckhero 81be02a
ran tests
duckduckhero 3663170
final fix
duckduckhero 77d2743
coderabbit and tests
duckduckhero 738c8bc
Merge branch 'main' into chat-refactor-new-db-final
yujonglee 25d3d80
done
yujonglee 60c067e
merged?
duckduckhero 57505ea
fixed usechat issue
duckduckhero ef6487a
enabled right click
duckduckhero 8e8f6e9
Merge branch 'main' into usechat-fix
yujonglee 4feb3a1
Merge branch 'main' of https://github.com/fastrepl/hyprnote into usec…
duckduckhero abb33cd
staging experiment
duckduckhero d46eb58
merged
duckduckhero 56e1d9b
ran tests
duckduckhero 0abe5f6
recoverd staging
duckduckhero File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,4 +16,5 @@ internal | |
| .turbo | ||
|
|
||
| .windsurfrules | ||
| CLAUDE.md | ||
| CLAUDE.md | ||
| .cursor/ | ||
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
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
48 changes: 0 additions & 48 deletions
48
apps/desktop/src/components/right-panel/components/chat/chat-message.tsx
This file was deleted.
Oops, something went wrong.
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
4 changes: 1 addition & 3 deletions
4
apps/desktop/src/components/right-panel/components/chat/index.ts
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,8 @@ | ||
| export * from "./chat-history-item"; | ||
| export * from "./chat-history-view"; | ||
| export * from "./chat-input"; | ||
| export * from "./chat-message"; | ||
| export * from "./chat-messages-view"; | ||
| export * from "./empty-chat-state"; | ||
| export * from "./floating-action-buttons"; | ||
| export { MarkdownCard } from "./markdown-card"; | ||
| export { MessageContent } from "./message-content"; | ||
| export * from "./types"; | ||
| export { UIMessageComponent } from "./ui-message"; |
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Prevent cleanup crash and handle 0% progress correctly; optionally scope listener to local LLM
if (payload.progress)skips valid 0 updates.useEffect(() => { - let unlisten: () => void; - localLlmEvents.llmEvent.listen(({ payload }) => { - if (payload.progress) { - setProgress(payload.progress); - } - }).then((fn) => { - unlisten = fn; - }); - - return () => { - unlisten(); - }; -}, []); + if (!actualIsLocalLlm) return; + let unlisten: () => void = () => {}; + localLlmEvents.llmEvent.listen(({ payload }) => { + if (typeof payload?.progress === "number") { + setProgress(payload.progress); + } + }).then((fn) => { + unlisten = fn; + }); + + return () => { + unlisten(); + }; +}, [actualIsLocalLlm]);🤖 Prompt for AI Agents