fix: merge custom manual sources correctly and add management UI#321
Conversation
This fixes an issue where custom (manual) sources inputted via the New Session dialog were not correctly merged with incoming API sources during a refresh due to unstripped ID prefixes. Additionally, this provides a "Manage Custom Sources..." UI action under the Actions menu, enabling users to remove mistyped or unwanted manual sources from the SourceModel. Co-authored-by: arran4 <111667+arran4@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
There was a problem hiding this comment.
Code Review
This pull request introduces a feature to manage and remove custom sources. It adds a "Manage Custom Sources" dialog to the main window, tracks custom sources using an isCustom property, and implements a removeSource method in SourceModel. Feedback was provided to improve showManageCustomSourcesDialog by fixing inconsistent indentation, using Qt::DisplayRole for robust display names, and simplifying item deletion in Qt by directly deleting the item.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
@jules please fix lint issues: |
This fixes an issue where custom (manual) sources inputted via the New Session dialog were not correctly merged with incoming API sources during a refresh due to unstripped ID prefixes. Additionally, this provides a "Manage Custom Sources..." UI action under the Actions menu, enabling users to remove mistyped or unwanted manual sources from the SourceModel. Co-authored-by: arran4 <111667+arran4@users.noreply.github.com>
This fixes an issue where custom (manual) sources inputted via the New Session dialog were not correctly merged with incoming API sources during a refresh due to unstripped ID prefixes. Additionally, this provides a "Manage Custom Sources..." UI action under the Actions menu, enabling users to remove mistyped or unwanted manual sources from the SourceModel. Co-authored-by: arran4 <111667+arran4@users.noreply.github.com>
|
@jules manage sources fails to pick up on sources that were added prior to this change |
I have applied |
Fixed. The condition in |
Fixes the custom source merging and adds a management interface.
normalizeSourceIdto fully stripsources/andgithub/so custom source IDs match API source IDs.isCustom: trueflag inNewSessionDialogfor manual entries, and preserved it during API model updates.showManageCustomSourcesDialog()toMainWindow, integrated as "Manage Custom Sources" inkjulesui.rc.removeSource()toSourceModel.PR created automatically by Jules for task 7811112850366669182 started by @arran4