Skip to content

fix(deps): bump nested brace-expansion to clear desktop packaging audit - #2656

Merged
integry merged 1 commit into
mainfrom
fix/brace-expansion-dev-audit
Sep 30, 2026
Merged

integry merged 1 commit into
mainfrom
fix/brace-expansion-dev-audit

Conversation

@integry

@integry integry commented Sep 30, 2026

Copy link
Copy Markdown
Owner

Problem

Every open PR fails the four Desktop Package and Release › Validate unsigned … package jobs, and Finalize unsigned validation checksums fails with them. The failing step is Audit committed dependency resolution:

npm audit --package-lock-only --workspace=@propr/desktop --include=dev --audit-level=high

It reports brace-expansion <=1.1.20 as high severity (GHSA-q2hr-2g5m-vwhr, GHSA-qhr7-859c-m2p7, GHSA-6j4f-fj2g-mc7p).

The earlier "bump brace-expansion" commit on main updated only the top-level copy (5.0.12). The runtime audit (--omit=dev) passed, but the dev-only nested copies stayed at 1.1.18:

  • @electron/asar/node_modules/brace-expansion
  • glob/node_modules/brace-expansion
  • eslint/node_modules/brace-expansion
  • @eslint/config-array/node_modules/brace-expansion
  • @eslint/eslintrc/node_modules/brace-expansion

Fix

A lockfile-only patch update (npm update brace-expansion --package-lock-only) moves those five nested copies from 1.1.18 to 1.1.21, within their existing ^1.1.x ranges. There are no package.json or overrides changes, and no other lockfile entries change.

Verification

  • npm run desktop:audit:packaging: found 0 vulnerabilities
  • npm run audit:runtime: found 0 vulnerabilities

These are the only two audit commands the workflows run. Once this merges, open PRs pass after a rerun or after merging main.

🤖 Generated with Claude Code

…kaging audit

The desktop packaging audit (--include=dev, --audit-level=high) fails on
brace-expansion <=1.1.20 (GHSA-q2hr-2g5m-vwhr, GHSA-qhr7-859c-m2p7,
GHSA-6j4f-fj2g-mc7p). The earlier runtime-audit bump only moved the
top-level copy; the nested dev copies under @electron/asar, glob and
eslint stayed at 1.1.18. Lockfile-only patch update within their ranges.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@integry
integry merged commit 3f99b67 into main Sep 30, 2026
44 checks passed
@integry
integry deleted the fix/brace-expansion-dev-audit branch September 30, 2026 21:22
propr-dev Bot pushed a commit that referenced this pull request Oct 4, 2026
…. One correction to the review: in F4 it had the viewports the wrong way round (details below).

I fixed all four findings (F3–F6) and added a test for each. One correction to the review: in F4 it had the viewports the wrong way round (details below).

**Verification:** API typecheck and lint are clean, and 35/35 tests pass in the task, dashboard and goal-isolation suites. The preview-media suite passes (16/16) with the flags the repo's test runner uses; without them it fails for environment reasons. In the UI, typecheck and lint are clean, all 1920 unit tests pass, and all 20 cases in `task-list-desktop.pw.ts` and `startup-critical-path.pw.ts` pass. The node modules weren't installed, so I ran `.propr/setup.sh` first. That needed no repo changes.

**F3 – filters dropped a task's other runs**
- When the list is grouped by task, the filters now pick tasks instead of removing runs. The grouping and page-picking moved into a new file, `packages/api/routes/taskGrouping.ts`.
- **Status filters** (and `forReview`) check only the task's newest run, ordered by `created_at`, the same order the UI uses.
- **Search and Needs attention** select a task if any of its runs matches.
- **The page** then returns every run of the tasks it lists, ignoring the filters. `total` and `totalRuns` count those tasks and all their runs.
- The ungrouped (per-run) list behaves as before.
- The new test covers: Completed no longer showing a task whose newest run is still processing; Active keeping a task's completed history; Waiting; and a search that matches only an older run still returning the current one.
- One judgement call: for Needs attention I used "any run matches" rather than "newest run", so the list keeps agreeing with the dashboard's attention count.

**F4 – historical-run banner hidden**
- The banner was actually inside the desktop header, so it showed on desktop and was hidden on mobile, the reverse of what the finding says.
- It now renders once, outside both headers, so it shows at every width. On desktop that puts it just below the progress bar.
- The e2e test now checks that the "Back to Run 8" button is visible, not just that the text exists. A unit test checks the banner isn't inside either header and that "Back to Run 2" works.

**F5 – queued runs shown as running**
- Queued, pending and waiting runs now get their own `waiting` outcome.
- **Run track:** a still, dashed ring with no pulse, and the tooltip says "Run N waiting to start".
- **Timeline:** "Queued" where the duration goes and a grey "Waiting" badge, instead of "Running…" and "Active".
- Tests cover the outcome logic, the run track and the timeline.

**F6 – header token count frozen while viewing an older run**
- The header now remembers the live count it last saw along with when it saw it.
- On each poll, a count the history recorded later replaces it, so the header keeps rising and shows the final count when the newest run completes.
- A hook test checks 400 → 700 → 950 through completion while an older run is open.

Unrelated issue I noticed but didn't change: in the step list under an open run, the last step of a run that is only queued says "Running...". That predates this PR.

Previews: the desktop 1920px view of an older run with the banner showing, and the task list with PR #2656's queued run drawn as a dashed ring.

PR: #2720
Comment by: @integry (ID: 5982331441)
Model: claude-opus-5-5
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.

2 participants