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
{{ message }}
Repository navigation
Make the /plugin-profile picker and preview readable in a live session #16747
Live session on Claude Code 2.1.326, plugin-profiles 0.3.0, a folder with build applied, /plugin-profile then review:
The picker pages three profiles at a time behind "More profiles". Six profiles take two pages, and review is on the second. Cause: hooks/register.tsx builds the picker on $.ui.ask, which takes two to four labels (PAGE = 3).
The profile list and the preview print as one paragraph: every line break in the $.ui.log text renders as a replacement character, and the preview is cut off with an ellipsis part way through the "Left alone" list.
The confirm names the session that is running the command as one of the "Other sessions in this folder".
Outcome
A person picks a profile from one list showing every profile with its description, reads a preview with one item per line, and the confirm names only sessions other than their own.
Open design choice (owner)
How the picker shows every profile at once. Check what the mods API offers beyond $.ui.ask before proposing options.
Done when
Every profile is visible without paging, or the owner has chosen another shape.
The list and the preview render line by line in a live session, and nothing the person needs is cut off.
Two more from the same live session (plugin-profiles 0.3.0, Claude Code 2.1.326):
The closing line prints its prefix twice: plugin-profiles: plugin-profiles: profile review is in force; .... finish in hooks/register.tsx passes text that already starts with plugin-profiles: to $.ui.log, which adds the plugin name itself.
After Apply, nothing reloads until the person sends a prompt: the reload waits on turn.complete, and /plugin-profile runs no model turn. The "Switched" line says "when the next turn ends" but does not say a message must be sent. Either reload without a model turn or say plainly what to do next.
Size: Medium
Complexity: Medium
Uncertainty: Knowable
Flags: intent
Blocked by: none
Blast radius: the plugin-profiles picker, preview and confirm in hooks/register.tsx, read by anyone running /plugin-profile.
Reversible: yes; revert the code change.
Open questions:
How should the picker show every profile at once, given that $.ui.ask takes only two to four labels? The issue names this as an owner design choice and picks no shape.
RECOMMENDED: use whatever single-list selector the mods API offers beyond $.ui.ask, and fall back to paging only if none exists. Basis: judgment; the issue asks for one list and says to check the mods API first.
To answer, post a comment that starts with this line:
**Decision recorded.** <answer>
I understood three defects in a live session. The picker pages three profiles at a time. The list and preview lose their line breaks and the preview is cut off. The confirm lists the current session among the "Other sessions". The preview and confirm fixes look like direct edits. The picker needs the design choice above first. This relates to #16433. I found no open duplicate and no merged pull request that already fixes it.
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: The /plugin-profile picker shows all profiles in one list, the list and preview render one item per line without truncation, the confirm omits the current session, the closing line has one prefix, and the post-Apply reload is automatic or clearly explained.
How should the picker show every profile at once, given $.ui.ask takes only two to four labels? No Decision recorded comment answers it.
RECOMMENDED: Use a single-list selector from the mods API if one exists; otherwise keep $.ui.ask paging with the description in each label, or accept the profile name as a command argument. Basis: plugins/plugin-profiles/hooks/register.tsx:14
How should the list and preview keep line breaks, given newlines in $.ui.log render as replacement characters and the preview is cut off?
RECOMMENDED: Make one $.ui.log call per line, and return the full preview as the command result text if the log still truncates it. Basis: plugins/plugin-profiles/hooks/register.tsx:43
How does the code identify the current session in preview.othersInFolder, which carries only a name?
RECOMMENDED: Filter out the entry whose name matches the running session's own name or id from $, and add the id to the CLI output if $ does not expose a matching value. Basis: plugins/plugin-profiles/hooks/register.tsx:58
After Apply, should the reload run without a model turn, or should the Switched message just say a message must be sent first?
RECOMMENDED: Say plainly that the person must send a message (or run /reload-plugins now) unless the mods API can trigger the reload without a turn. Basis: plugins/plugin-profiles/hooks/register.tsx:99
Sources read
plugins/plugin-profiles/hooks/register.tsx:14: PAGE = 3 because $.ui.ask takes two to four labels
plugins/plugin-profiles/hooks/register.tsx:43: list logged as one newline-joined $.ui.log string
plugins/plugin-profiles/hooks/register.tsx:54: preview logged as one newline-joined string
plugins/plugin-profiles/hooks/register.tsx:58: othersInFolder is used unfiltered in the confirm
plugins/plugin-profiles/hooks/register.tsx:99: Switched message says reload happens when the next turn ends
plugins/plugin-profiles/hooks/register.tsx:110: finish text already starts with plugin-profiles:
plugins/plugin-profiles/hooks/plugin-profile.test.ts:130: test asserts the current Other sessions wording
To answer, post a comment that starts with this line:
**Decision recorded.** <answer>
Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.
Two more from the owner's session, and the owner's direction (2026-11-17): "before we use this stuff we've got to clean up the cosmetics, UX/UI..." The rollout of folder profiles and melodic-software/dotfiles#1607 waits on this item.
"profile build is in force; the plugins it switches off stay loaded until the next session start" printed after a switch that turned nothing off.
The owner asked how to put a folder back to the state before any profile was applied. Today that is only profiles.mjs clear --for folder from a shell; /plugin-profile offers no such choice. Whether it gains one is an owner decision.
Owner of this item: the hub session "Plugin Presets"; builder: background session plugin-profiles-build-8.
Owner decision on item 7, 2026-11-17: "That should be part of the /plugin-profile menu/options no?" The /plugin-profile menu gains a choice that clears the folder profile, with the same preview and confirm as a switch, running the existing profiles.mjs clear --for folder. Add to Done when:
/plugin-profile offers a choice that puts the folder back to the state before any profile, and says what the running session keeps loaded.
Owner decision on the picker shape, 2026-11-17. Options were A, one focused pane holding a Select of every profile plus "No profile"; B, keep the $.ui.ask paging, made readable; C, no picker, type /plugin-profile <name>. A was recommended. Owner: "go w/ recomendations". Decision: A.
Activity
kyle-sexton commentedon Nov 17, 2026
Two more from the same live session (plugin-profiles 0.3.0, Claude Code 2.1.326):
plugin-profiles: plugin-profiles: profile review is in force; ....finishinhooks/register.tsxpasses text that already starts withplugin-profiles:to$.ui.log, which adds the plugin name itself.turn.complete, and/plugin-profileruns no model turn. The "Switched" line says "when the next turn ends" but does not say a message must be sent. Either reload without a model turn or say plainly what to do next.github-actions commentedon Nov 17, 2026
Size: Medium
Complexity: Medium
Uncertainty: Knowable
Flags: intent
Blocked by: none
Blast radius: the plugin-profiles picker, preview and confirm in hooks/register.tsx, read by anyone running /plugin-profile.
Reversible: yes; revert the code change.
Open questions:
$.ui.asktakes only two to four labels? The issue names this as an owner design choice and picks no shape.RECOMMENDED: use whatever single-list selector the mods API offers beyond
$.ui.ask, and fall back to paging only if none exists. Basis: judgment; the issue asks for one list and says to check the mods API first.To answer, post a comment that starts with this line:
I understood three defects in a live session. The picker pages three profiles at a time. The list and preview lose their line breaks and the preview is cut off. The confirm lists the current session among the "Other sessions". The preview and confirm fixes look like direct edits. The picker needs the design choice above first. This relates to #16433. I found no open duplicate and no merged pull request that already fixes it.
Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 17, 2026
The triage verdict left this issue at
needs-owner-decision:Reason:
intentmelodic-automation-lanes commentedon Nov 17, 2026
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: The /plugin-profile picker shows all profiles in one list, the list and preview render one item per line without truncation, the confirm omits the current session, the closing line has one prefix, and the post-Apply reload is automatic or clearly explained.
Related work
Open questions
RECOMMENDED: Use a single-list selector from the mods API if one exists; otherwise keep $.ui.ask paging with the description in each label, or accept the profile name as a command argument. Basis: plugins/plugin-profiles/hooks/register.tsx:14
RECOMMENDED: Make one $.ui.log call per line, and return the full preview as the command result text if the log still truncates it. Basis: plugins/plugin-profiles/hooks/register.tsx:43
RECOMMENDED: Filter out the entry whose name matches the running session's own name or id from $, and add the id to the CLI output if $ does not expose a matching value. Basis: plugins/plugin-profiles/hooks/register.tsx:58
RECOMMENDED: Say plainly that the person must send a message (or run /reload-plugins now) unless the mods API can trigger the reload without a turn. Basis: plugins/plugin-profiles/hooks/register.tsx:99
Sources read
To answer, post a comment that starts with this line:
Automated refinement by the lanes App. Answer with a comment whose first line is
**Decision recorded.**.kyle-sexton commentedon Nov 17, 2026
Two more from the owner's session, and the owner's direction (2026-11-17): "before we use this stuff we've got to clean up the cosmetics, UX/UI..." The rollout of folder profiles and melodic-software/dotfiles#1607 waits on this item.
profiles.mjs clear --for folderfrom a shell;/plugin-profileoffers no such choice. Whether it gains one is an owner decision.Owner of this item: the hub session "Plugin Presets"; builder: background session plugin-profiles-build-8.
kyle-sexton commentedon Nov 17, 2026
Owner decision on item 7, 2026-11-17: "That should be part of the /plugin-profile menu/options no?" The
/plugin-profilemenu gains a choice that clears the folder profile, with the same preview and confirm as a switch, running the existingprofiles.mjs clear --for folder. Add to Done when:/plugin-profileoffers a choice that puts the folder back to the state before any profile, and says what the running session keeps loaded.kyle-sexton commentedon Nov 17, 2026
Owner decision on the picker shape, 2026-11-17. Options were A, one focused pane holding a
Selectof every profile plus "No profile"; B, keep the$.ui.askpaging, made readable; C, no picker, type/plugin-profile <name>. A was recommended. Owner: "go w/ recomendations". Decision: A.feat(plugin-profiles): pick a profile from one pane listing every pro…
fix(plugin-profiles): structured clear preview, one-session clear wor…