Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "desktop"
version = "0.0.78"
version = "0.0.77"
authors = ["you"]
edition = "2021"
description = "Hyprnote Desktop App"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schema.tauri.app/config/2",
"version": "0.0.78",
"version": "0.0.77",
"productName": "Hyprnote Dev",
"mainBinaryName": "Hyprnote Dev",
"identifier": "com.hyprnote.dev",
Expand Down
3 changes: 3 additions & 0 deletions apps/desktop/src/components/right-panel/hooks/useChatLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
smoothStream,
stepCountIs,
streamText,
tool,
} from "@hypr/utils/ai";
import { useSessions } from "@hypr/utils/contexts";
import { useQueryClient } from "@tanstack/react-query";
Expand Down Expand Up @@ -330,6 +331,7 @@ export function useChatLogic({
tools: {
...(shouldUseTools && { ...hyprMcpTools, ...newMcpTools }),
...(shouldUseTools && baseTools),
...(type === "HyprLocal" && { progress_update: tool({ inputSchema: z.any() }) }),
},
onError: (error) => {
console.error("On Error Catch:", error);
Expand Down Expand Up @@ -408,6 +410,7 @@ export function useChatLogic({

if (chunk.type === "tool-call" && !(chunk.toolName === "progress_update" && type === "HyprLocal")) {
// Save accumulated AI text before processing tool

if (currentAiTextMessageId && aiResponse.trim()) {
const saveAiText = async () => {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ export const prepareMessageHistory = async (
|| modelId === "gpt-4o"
|| modelId === "openai/gpt-5"
|| (apiBase && apiBase.includes("pro.hyprnote.com"))
|| type === "HyprLocal"
);

const systemContent = await templateCommands.render("chat.system", {
Expand Down
Loading