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
Studio map: one Ignore for a loose parent folder with only subfolder rows #790
Follow-up of spec #753 (First map), found in #768's real run (PR #776).
What to build
On the scan screen, a loose folder whose files sit only in subfolders has no row of its own, so ignoring it takes one Ignore press per subfolder row. In #768's run on observability-sdk, ignoring .claude/ (34 files) took 8 presses: one per .claude/skills/* row. The page should offer one Ignore for such a parent folder, so ignoring .claude/ takes one press.
Open for Daniel (hence needs-triage): the parent's shape. It could be a row of its own above its subfolder rows, or an "Ignore all of .claude/" action on each subfolder row.
Acceptance criteria
A loose folder that holds no loose files of its own, only subfolder rows, can be ignored whole in one press. Its ignored pattern covers every subfolder, and its Unignore brings them all back.
The press is muted where it would take a part's files, as a row's Ignore is now.
Rows in ui/tests/map.test.mjs for the grouping, and a snap fixture in scripts/snap/fixtures-map.ts for the parent's Ignore.
Category: enhancement Summary: On the map scan screen, a loose folder with no files of its own gets a parent row with one Ignore, so ignoring .claude/ takes one press, not eight.
Current behavior: looseGroups() groups the scan's loose files or tests by their exact folder (the path up to its last /), one row per folder. A folder whose files all sit in subfolders, like .claude/ with only .claude/skills/*/, has no row. Ignoring it takes one Ignore per subfolder row: 8 presses in #768's run on observability-sdk (PR #776, Evidence).
A parent that has loose files of its own already works: its own row's Ignore covers its subfolders, because an ignored folder pattern matches by prefix (covers() in the server's map scan). The server's ignore-folder edit already accepts any folder that holds loose files and refuses one that holds a part's files, so it takes a parent folder as it is.
Desired behavior (Daniel's decisions in this triage):
Shape: a parent row. The parent gets a row of its own just above its subfolder rows, nested like a folder in a file tree. It shows the folder and how many subfolder rows it holds (e.g. .claude/skills/ · 8 folders) and has an Ignore, with no Give to or Add. The subfolder rows stay as they are, each with its own Give to, Add and Ignore.
Levels: every level. A folder gets a parent row when it holds two or more loose rows (subfolder rows or other parent rows) and no loose files of its own. Example: loose rows .claude/skills/a/ to h/ and .claude/agents/x/, y/ give parent rows .claude/, .claude/agents/ and .claude/skills/, each nested under the one above. A single chain with one child (a/ holding only a/b/) gets no parent row, since the child's Ignore already does the job.
Muted as a row's Ignore is. A parent row's Ignore is muted, with the same kind of reason, when the folder holds a part's files. In the example, if .claude/hooks/ belongs to a part, .claude/'s Ignore is muted, and .claude/skills/ still offers a working Ignore. The root never gets a parent row.
Ignore and Unignore. The parent's Ignore sends the existing ignore-folder edit with the parent's folder. The folder appears under Ignored folders, and its Unignore makes every subfolder's files loose again. When a parent is ignored, any ignored entries inside it are dropped from the list, so a subfolder ignored earlier comes back too when the parent is unignored. This is the one server-side change: ignore_folder drops the patterns the new one covers. Focus after a press follows the current rule: to the folder's Unignore, and after Unignore to the parent row's Ignore.
Loose files and loose tests each group their rows on their own, as they do now.
Key interfaces:
looseGroups(files, parts) returns rows that can now be parent rows. Each row needs to say whether it is a parent and how deep it sits, so the panel can indent it, and a parent row needs its count of rows. A parent row carries no files to give and no Add.
The ignore-folder edit's wire shape ({ kind, folder, ignored }) is unchanged.
The server's ignore_folder: ignoring a folder removes the ignored patterns inside it, so the list holds only the outer pattern.
Acceptance criteria:
With loose files only under .claude/skills/a/ to h/, the scan screen shows a .claude/skills/ parent row above the 8 rows, and one press of its Ignore leaves no .claude/ loose rows.
Its Unignore brings all 8 rows back, including a subfolder that was ignored on its own before the parent.
Every level: a folder holding two or more loose rows and no loose files of its own gets a parent row, and a folder with a single child row does not.
A parent row's Ignore is muted, with its reason, when the folder holds a part's files, and the server still refuses that edit.
A folder with loose files of its own keeps its normal row and gets no separate parent row.
New rows in the existing looseGroups table test cover the grouping cases above, and a new row in the server's map-scan edit table test covers dropping the nested ignored patterns.
A snap fixture shows a parent row with its Ignore, and one with that Ignore muted.
The map behaviour doc's "Ignore a loose folder" covers parent rows, and system-map.json is updated if system-map check asks for it.
Out of scope:
Give to or Add on a parent row (giving a whole parent to a part).
Collapsing or expanding subfolder rows.
Changes to the CLI's plotkeeper map scan output.
Changes to the reference-copy candidates (the ticked ignore list).
Activity
danielrispler commentedon Nov 28, 2026
Agent Brief
Category: enhancement
Summary: On the map scan screen, a loose folder with no files of its own gets a parent row with one Ignore, so ignoring
.claude/takes one press, not eight.Current behavior:
looseGroups()groups the scan's loose files or tests by their exact folder (the path up to its last/), one row per folder. A folder whose files all sit in subfolders, like.claude/with only.claude/skills/*/, has no row. Ignoring it takes one Ignore per subfolder row: 8 presses in #768's run on observability-sdk (PR #776, Evidence).A parent that has loose files of its own already works: its own row's Ignore covers its subfolders, because an
ignoredfolder pattern matches by prefix (covers()in the server's map scan). The server'signore-folderedit already accepts any folder that holds loose files and refuses one that holds a part's files, so it takes a parent folder as it is.Desired behavior (Daniel's decisions in this triage):
.claude/skills/ · 8 folders) and has an Ignore, with no Give to or Add. The subfolder rows stay as they are, each with its own Give to, Add and Ignore..claude/skills/a/toh/and.claude/agents/x/,y/give parent rows.claude/,.claude/agents/and.claude/skills/, each nested under the one above. A single chain with one child (a/holding onlya/b/) gets no parent row, since the child's Ignore already does the job..claude/hooks/belongs to a part,.claude/'s Ignore is muted, and.claude/skills/still offers a working Ignore. The root never gets a parent row.ignore-folderedit with the parent's folder. The folder appears under Ignored folders, and its Unignore makes every subfolder's files loose again. When a parent is ignored, anyignoredentries inside it are dropped from the list, so a subfolder ignored earlier comes back too when the parent is unignored. This is the one server-side change:ignore_folderdrops the patterns the new one covers. Focus after a press follows the current rule: to the folder's Unignore, and after Unignore to the parent row's Ignore.Key interfaces:
looseGroups(files, parts)returns rows that can now be parent rows. Each row needs to say whether it is a parent and how deep it sits, so the panel can indent it, and a parent row needs its count of rows. A parent row carries nofilesto give and no Add.ignore-folderedit's wire shape ({ kind, folder, ignored }) is unchanged.ignore_folder: ignoring a folder removes theignoredpatterns inside it, so the list holds only the outer pattern.Acceptance criteria:
.claude/skills/a/toh/, the scan screen shows a.claude/skills/parent row above the 8 rows, and one press of its Ignore leaves no.claude/loose rows.looseGroupstable test cover the grouping cases above, and a new row in the server's map-scan edit table test covers dropping the nestedignoredpatterns.system-map.jsonis updated ifsystem-map checkasks for it.Out of scope:
plotkeeper map scanoutput.Studio map: one Ignore for a loose parent folder with only subfolder …
Studio map: the scan screen is a centred card, its edits a drawer by …