Skip to content

More UI updates#184

Merged
rhennigan merged 10 commits into
mainfrom
feature/AgentPrefsTake4
May 13, 2026
Merged

More UI updates#184
rhennigan merged 10 commits into
mainfrom
feature/AgentPrefsTake4

Conversation

@rhennigan
Copy link
Copy Markdown
Member

No description provided.

ljdandria added 4 commits May 12, 2026 11:39
…ule buttons are clicked.

This avoids the need to evaluate something extra in the PaneSelector etc dynamics.
This utility manages the value of PersistentSymbol["WelcomeScreenAIBannerTracking", "FrontEnd"], which will be used by the Welcome Screen to decide what, if any, AI-related banners to display. It is called directly when interacting with the AgentTools preferences content, and will also likely be called indirectly by other code -- possibly by the Welcome Screen itself.

The details of this implementation are likely to change over time. What's here now should be considered a first draft, and was primarily authored by LarryA.
Copilot AI review requested due to automatic review settings May 13, 2026 20:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new public symbol ManageWelcomeScreenData to the AgentTools paclet and wires it into the preferences UI refresh path. It also reworks some hover-style Dynamic expressions and replaces a few kernel-level state assignments inside button actions with FEEvaluate[FEPrivateSet[...]] calls (so that click feedback updates the UI without a kernel round-trip).

Changes:

  • Introduces ManageWelcomeScreenData[ "Clear"|"Remove"|"Reset"|"Initialize"|"Get"|"Set"|"Update" ] backed by PersistentSymbol["WelcomeScreenAIBannerTracking","FrontEnd"], with helpers to track per-client deployed/installed banner state, expiration dates, and close-button interactions.
  • Refactors several Dynamic[If[CurrentValue["MouseOver"], cA, cB]] style options to (Dynamic[If[CurrentValue["MouseOver"], #1, #2]]&)[cA, cB] and replaces in-button clicked = True with FEEvaluate[FEPrivateSet[clicked, True]], also dropping Now; from progress Dynamics.
  • Exports ManageWelcomeScreenData from PacletInfo.wl and Kernel/Main.wl (including $AgentToolsProtectedNames).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 9 comments.

File Description
PacletInfo.wl Adds ManageWelcomeScreenData to the paclet's exported symbol list.
Kernel/Main.wl Declares and protects the new ManageWelcomeScreenData symbol.
Kernel/PreferencesContent.wl Implements ManageWelcomeScreenData and supporting helpers, updates hover Dynamic patterns, and switches button-click state mutation to FEEvaluate`.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Kernel/PreferencesContent.wl
Comment thread Kernel/PreferencesContent.wl Outdated
Comment thread Kernel/PreferencesContent.wl Outdated
Comment thread Kernel/PreferencesContent.wl Outdated
Comment thread Kernel/PreferencesContent.wl Outdated
Comment on lines +758 to +767
Module[{assoc},
assoc = PersistentSymbol["WelcomeScreenAIBannerTracking", "FrontEnd"];
PersistentSymbol["WelcomeScreenAIBannerTracking", "FrontEnd"] =
If[
(* if the relevant PersistentSymbol doesn't yet exist, create it *)
!AssociationQ[assoc],
initializeWelcomeScreenData[],
(* otherwise, compare the stored data with the current state, and update as appropriate *)
updateWelcomeScreenData[assoc]
]
Comment thread Kernel/PreferencesContent.wl
Comment thread Kernel/PreferencesContent.wl
Comment thread Kernel/PreferencesContent.wl
rhennigan and others added 6 commits May 13, 2026 18:52
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The first downvalue already returns True when ShowAIBanner is True,
so by the time the second downvalue's body runs, that condition is
guaranteed False. Remove the redundant Or-branch and collapse to the
remaining And.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Make statement termination consistent across all definitions in the
ManageWelcomeScreenData / helpers block: every top-level definition
now ends with ;.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The previous comment said "today's date is later than the date", but the
function uses DateOverlapsQ and treats Today == date as expired. Several
callers (initializeClientData, updateClientData, updateDeployedAgentsData)
rely on that behavior to surface the banner immediately after setting
Date -> Today, so update the comment rather than the behavior.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 13, 2026 23:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Comment thread Kernel/PreferencesContent.wl
Comment on lines +895 to +901
installedClients = getInstalledMCPClients[];

(* Previous installed state *)
previousInstalledState = assoc["IsInstalled"];

(* Current installed state *)
currentInstalledState = MemberQ[installedClients, assoc["ClientName"]];
@rhennigan rhennigan merged commit b4c5115 into main May 13, 2026
5 checks passed
@rhennigan rhennigan deleted the feature/AgentPrefsTake4 branch May 13, 2026 23:15
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.

3 participants