chore: include AI model config (LLM/STT) in support chat context#4824
Open
devin-ai-integration[bot] wants to merge 2 commits intomainfrom
Open
chore: include AI model config (LLM/STT) in support chat context#4824devin-ai-integration[bot] wants to merge 2 commits intomainfrom
devin-ai-integration[bot] wants to merge 2 commits intomainfrom
Conversation
Co-Authored-By: John <john@hyprnote.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
✅ Deploy Preview for hyprnote canceled.
|
✅ Deploy Preview for char-cli-web canceled.
|
Co-Authored-By: John <john@hyprnote.com>
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
When users create issues via the in-app chat support, the GitHub issues now include the user's configured AI models (LLM provider/model and STT provider/model) alongside the existing device and account info. This helps with triaging — knowing whether a user is on a local STT model vs cloud, or which LLM provider they use, is useful context for debugging.
Changes:
ModelInfostruct totemplate-supportcrate (LLM/STT provider + model, all optional)SupportContextand thesupport_context.md.jinjatemplate to render model infouseSupportMCPhook now reads model config from TinyBase settings and passes it into the context collectorplugins/template/js/bindings.gen.ts(codegen could not run due to missingapple-contact/Cargo.tomlin workspace)plugins/tray/src/ext.rs(indentation + extra blank line) to passfmtCI checkReview & Testing Checklist for Human
bindings.gen.tsmatches what specta codegen would produce. Codegen couldn't run (apple-contactplugin missingCargo.toml). Runpnpm -F @hypr/plugin-template codegenonce the workspace issue is fixed and confirm theModelInfotype andSupportContextupdate match.support_context.md.jinja— theendif/iftags have inconsistent indent levels (some at 2 spaces, some at 4) which may produce unexpected whitespace in the rendered markdown context block.Notes
modelsfield onSupportContextis optional (#[serde(default)]), so this is fully backward-compatible — existing clients without model info will just omit the section.useConfigValuesfor the model keys returnsundefinedwhen not set; the code converts tonullvia??.checkandcheck (macos-latest)) fail due to pre-existing clippy lints inshortcut-macosandclicrates, unrelated to this PR. All relevant checks (fmt,ci,check (ubuntu-latest)) pass.Link to Devin session: https://app.devin.ai/sessions/2cb1964233d249d4b7e3aebe8a67be82
Requested by: @ComputelessComputer