Skip to content

Make the /plugin-profile picker and preview readable in a live session #16747

Closed

Description

@kyle-sexton

Refs #16433.

Observed

Live session on Claude Code 2.1.326, plugin-profiles 0.3.0, a folder with build applied, /plugin-profile then review:

  1. 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).
  2. 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.
  3. 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.
  • The confirm leaves out the current session.

Activity

  1. added
    host-run
    on Nov 17, 2026
  2. added
    needs-triage
    on Nov 17, 2026
  3. kyle-sexton commented on Nov 17, 2026

    @kyle-sexton
    MemberAuthor

    Two more from the same live session (plugin-profiles 0.3.0, Claude Code 2.1.326):

    1. 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.
    2. 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.
  4. github-actions commented on Nov 17, 2026

    @github-actions
    Contributor

    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:

    1. 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.

    Automated triage. A maintainer reviews it.

  5. added
    needs-owner-decision
    on Nov 17, 2026
  6. melodic-automation-lanes commented on Nov 17, 2026

    @melodic-automation-lanes
    Contributor

    The triage verdict left this issue at needs-owner-decision:

    • flagged: intent
    • held by needs-owner-decision
    • no lanes App verdict comment shows whether an earlier verdict was flagged

    Reason: intent

  7. melodic-automation-lanes commented on Nov 17, 2026

    @melodic-automation-lanes
    Contributor

    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

    1. 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
    2. 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
    3. 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
    4. 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.**.

  8. kyle-sexton commented on Nov 17, 2026

    @kyle-sexton
    MemberAuthor

    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.

    1. "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.
    2. 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.

  9. kyle-sexton commented on Nov 17, 2026

    @kyle-sexton
    MemberAuthor

    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.
  10. kyle-sexton commented on Nov 17, 2026

    @kyle-sexton
    MemberAuthor

    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.

  11. removed
    host-run
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-owner-decisionneeds-triage

    Type

    Fields

    Work status

    needs-owner-decision

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions