You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move active What's New content into an empty slide list so the startup modal stays quiet until new cards are added. Keep manual Open available with an empty state, and update the static test plus DOX contract for dormant periods.
Copy file name to clipboardExpand all lines: plugins/_whats_new/AGENTS.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,22 @@
2
2
3
3
## Purpose
4
4
5
-
- Own the built-in version-gated "What's New" modal for showcasing Agent Zero features after updates.
5
+
- Own the built-in version-gated "What's New" modal for showcasing Agent Zero features after updates, dormant when no cards are configured.
6
6
7
7
## Ownership
8
8
9
9
-`plugin.yaml` owns metadata and always-enabled status.
10
10
-`webui/main.html` owns the canonical modal opened by startup and the Builtin Plugins `Open` button.
11
11
-`webui/whats-new.html` is a compatibility redirect to `webui/main.html`.
12
+
-`webui/whats-new-slides.js` owns the current card list; an empty list disables automatic display.
12
13
-`webui/` owns the Alpine store, copy, and showcase media assets.
13
-
-`extensions/webui/initFw_end/` owns the startup trigger that opens the modal once per newer installed version unless the user has permanently opted out.
14
+
-`extensions/webui/initFw_end/` owns the startup trigger that opens the modal once per newer installed version when cards exist unless the user has permanently opted out.
14
15
15
16
## Local Contracts
16
17
17
18
- Closing, Skip, or Done records only the current installed version as seen.
18
-
- Future updates should auto-open the modal again unless the user checks the modal's permanent opt-out checkbox.
19
+
- Future updates with cards should auto-open the modal again unless the user checks the modal's permanent opt-out checkbox.
20
+
- Do not auto-open the modal when `webui/whats-new-slides.js` exports no cards.
19
21
- The permanent opt-out is stored in browser-local state under `a0_whats_new_never_show`.
20
22
- Honor the legacy `a0_whats_new_seen_version` browser-local marker as the last seen version.
21
23
- Keep the modal copy concise, left-aligned, and paired with feature media.
@@ -24,15 +26,16 @@
24
26
25
27
## Work Guidance
26
28
27
-
- Add showcase assets under `webui/assets/` and reference them through `/plugins/_whats_new/webui/assets/...`.
29
+
- Add showcase cards in `webui/whats-new-slides.js`; add assets under `webui/assets/` and reference them through `/plugins/_whats_new/webui/assets/...`.
28
30
- Keep the startup extension idempotent and tolerant of missing or non-comparable version labels.
29
31
- Prefer release-line comparisons over development commit-distance comparisons so local development builds do not reopen the modal on every commit.
30
32
- Preserve `webui/main.html` so the plugin list exposes the standard `Open` action.
31
33
32
34
## Verification
33
35
34
36
- Run `pytest tests/test_whats_new_static.py` after changing the modal, trigger, or assets.
35
-
- Smoke-test startup display, slide navigation, dismissal, same-version reload behavior, newer-version display behavior, opt-out behavior, and manual Builtin Plugins `Open` behavior in the WebUI.
37
+
- When the card list is empty, smoke-test no startup modal and the manual Builtin Plugins `Open` empty state when practical.
38
+
- When cards exist, smoke-test startup display, slide navigation, dismissal, same-version reload behavior, newer-version display behavior, opt-out behavior, and manual Builtin Plugins `Open` behavior in the WebUI.
0 commit comments