Skip to content

Local tool hotfix#1450

Merged
duckduckhero merged 3 commits intomainfrom
local-tool-hotfix
Sep 5, 2025
Merged

Local tool hotfix#1450
duckduckhero merged 3 commits intomainfrom
local-tool-hotfix

Conversation

@duckduckhero
Copy link
Contributor

No description provided.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 5, 2025

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

Version metadata decreased from 0.0.78 to 0.0.77 in Tauri configs. Chat logic adds a HyprLocal-only progress_update tool via @hypr/utils/ai and adjusts tool-call handling formatting. Chat utils remove HyprLocal from toolEnabled criteria in prepareMessageHistory, affecting system template tool enablement.

Changes

Cohort / File(s) Change Summary
Tauri version metadata
apps/desktop/src-tauri/Cargo.toml, apps/desktop/src-tauri/tauri.conf.json
Downgraded version fields from 0.0.78 to 0.0.77; no other changes.
Chat hook: HyprLocal progress_update tool
apps/desktop/src/components/right-panel/hooks/useChatLogic.ts
Imported tool from @hypr/utils/ai. Added HyprLocal-only progress_update tool with z.any() input schema. Minor whitespace tweak in tool-call handling block.
Chat utils: tool enablement logic
apps/desktop/src/components/right-panel/utils/chat-utils.ts
Removed type === "HyprLocal" from toolEnabled calculation in prepareMessageHistory, preventing automatic tool enablement for HyprLocal in the system template.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant U as User
  participant UI as Right Panel UI
  participant CL as useChatLogic
  participant M as Model (HyprLocal)
  participant T as Tool: progress_update

  U->>UI: Send message
  UI->>CL: prepare request
  Note over CL: HyprLocal: registers progress_update tool
  CL->>M: Stream chat request (tools registered)
  M-->>CL: Streamed tokens / tool_call(progress_update)
  alt tool_call: progress_update
    CL->>T: Invoke progress_update with payload
    T-->>CL: Acknowledge/return
  else normal tokens
    CL-->>UI: Append streamed text
  end
  CL-->>UI: Finalize response
Loading
sequenceDiagram
  autonumber
  participant CU as chat-utils.prepareMessageHistory
  participant ST as System Template

  CU->>CU: Compute toolEnabled
  Note over CU: HyprLocal no longer auto-enables tools
  CU->>ST: Build systemContent with toolEnabled=false (for HyprLocal)
  ST-->>CU: System prompt without tool instructions
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs


📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 42377ec and 62c52f9.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (4)
  • apps/desktop/src-tauri/Cargo.toml (1 hunks)
  • apps/desktop/src-tauri/tauri.conf.json (1 hunks)
  • apps/desktop/src/components/right-panel/hooks/useChatLogic.ts (3 hunks)
  • apps/desktop/src/components/right-panel/utils/chat-utils.ts (0 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch local-tool-hotfix

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@duckduckhero duckduckhero merged commit 2162c12 into main Sep 5, 2025
5 of 6 checks passed
@ComputelessComputer ComputelessComputer deleted the local-tool-hotfix branch December 14, 2025 15:23
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