Skip to content

feat(sidebar): filter the workspace list by project group - #7

Open
decrypted wants to merge 1 commit into
mainfrom
feat/project-group-filter
Open

decrypted wants to merge 1 commit into
mainfrom
feat/project-group-filter

Conversation

@decrypted

Copy link
Copy Markdown
Owner

What

Workspace options → Show → Project groups, a multi-select filter over project groups. The workspace-board filter menu has it too.

  • Picker:
    • The trigger reads "All groups", "N of M", or the single visible entry.
    • "Show all" clears the filter.
    • Groups are listed in sidebar order, indented by nesting, with a separate Ungrouped entry.
  • Nesting: hiding a parent hides its subgroups; a child under a hidden parent shows as greyed out.
  • What disappears: for a hidden group, its header, projects, empty-project placeholders, folder workspaces and workspaces. Applies to the sidebar, the workspace board and Cmd+1–9 numbering, whatever "Group by" is set to.
  • Storage: hiddenProjectGroupIds in persisted UI state, next to filterRepoIds. Storing hidden ids means new groups are visible by default, an empty list means "All", and ids of deleted groups are ignored.
  • Counts as a filter: in the Workspace options badge, in "Reset filters" and in the empty-list "clear filters".
  • View only: background work is unchanged. Hidden workspaces still notify. Opening one from a notification or the palette unhides its group, like the project filter does.
  • Not affected: the jump palette, the status bar and mobile.

Why

To switch between clients or project sets without collapsing and expanding several groups by hand.

Testing

  • pnpm check:changed (base cbd75eb): 35/36 checks. The only failures are pre-existing upstream ones: the WSL test, and the cross-version harness path for v1.4.261.
  • project-group-filter.test.ts covers hierarchy, ungrouped, deleted ids and unhiding.
  • Fixture screenshots taken (SidebarProjectGroupFilterSection--allGroups / --filtered, light and dark).

Known

"Move to group" still lists hidden groups, so moving a project into one hides that project. A follow-up could unhide the target group.

🤖 Generated with Claude Code

@decrypted
decrypted force-pushed the feat/project-group-filter branch 2 times, most recently from ac49d62 to 219c411 Compare November 18, 2026 08:42
decrypted added a commit that referenced this pull request Nov 18, 2026
Upstream 8abbc91..2f5abbc (245 commits). Branches rebased onto it:
fix/linux-port-scan-inode-cache (#1; now on upstream's linux-proc-net-listeners
parser, which gained a uid field), feat/port-detection-setting (#2),
feat/remote-autoconnect-setting (#3), feat/reduce-motion-setting (#4),
feat/keep-awake-timed (#5), feat/sleep-project-and-group (#6),
feat/project-group-filter (#7; group hider composed over upstream's
folder-nested exemption), fix/worktree-create-missing-base-hint (#8), ci/fork-build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@decrypted
decrypted force-pushed the feat/project-group-filter branch from 219c411 to 679bd79 Compare November 19, 2026 08:18
decrypted added a commit that referenced this pull request Nov 19, 2026
Upstream 2f5abbc..7bc705a (345 commits). Branches rebased onto it:
#1 fix/linux-port-scan-inode-cache, #2 feat/port-detection-setting, #3 feat/remote-autoconnect-setting,
#4 feat/reduce-motion-setting, #5 feat/keep-awake-timed, #6 feat/sleep-project-and-group,
#7 feat/project-group-filter, #8 fix/worktree-create-missing-base-hint; plus ci/fork-build.

- #2: upstream stablyai#43836 took the refreshing flag away from the background scanner; the
  detection-off reset no longer clears it.
- #4: upstream's HoverScrollText and the composer glow use the motion-safe / motion-reduce
  variants; the bot activity list scrolls with motionSafeScrollBehavior.
- #7: kept upstream's bot-listed workspace exclusion next to the project-group scope.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@decrypted
decrypted force-pushed the feat/project-group-filter branch 2 times, most recently from 6e8ff14 to aca83c7 Compare November 23, 2026 08:19
decrypted pushed a commit that referenced this pull request Nov 23, 2026
…journal/ (stablyai#46397)

* feat(bots): journal each closed item and its PRs in the bot's memory/journal/

When a bot's item closes, Orca appends one line per linked PR to
memory/journal/YYYY-MM.md in the bot's home, from Items and the desktop's
PR cache: '- 2026-11-21 | item stablyai#1006 | PR stablyai#4417 merged | <title>'. No model
and no bot writes it, so finished work stays findable with grep after
status leaves MEMORY.md. Only items from chats acting for the owner are
journaled; each line is written once, on the bot's memory queue.

* fix(bots): journal each close once by item and PR, and retry lines a busy file kept out

A close is one line by its date, item and PR, so a PR state the cache
learns later never writes it twice. A month file that keeps changing under
a write throws, so the pass keeps its mark and writes those lines next
time. A pass reads up to 100 closed items.

* fix(bots): journal each close once, by its item, and judge the owner by the conversation root

A close is written once, all its lines in one append, so a later pass that
sees the same close with newer PR state or links adds nothing. An unread
PR is named by its number. The owner check looks up the conversation's
/clear root, as other acts-for checks do.

* test(bots): pin which chats' closes the journal takes, by root and with old event runs

* fix(bots): journal every close in the window, catch up after a restart, keep repos apart

A pass reads closed items page by page until the window is covered, so a
burst of closes is never cut at the first page. On start, one pass catches
up on closes made while Orca was off. PRs are told apart by their full
reference, so two repos' #7 are two lines, named with their repo.
decrypted added a commit that referenced this pull request Nov 23, 2026
Upstream 3df243e..0b23e7a (1046 commits). Tree verified on the scratch
integration branch: tc and check:changed (42 checks) green.

- follow the upstream test cut (stablyai#46786): drop test-only reset exports and
  edits to deleted tests (#3)
- #4: upstream's new reduced-motion CSS/matchMedia moved onto the setting
- #5: union with upstream's WSL-host keep-awake counts; option types moved
  out for max-lines
- #7: hiddenProjectGroupIds moved into ClientUiWorkspaceFilterFields (max-lines)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@decrypted
decrypted force-pushed the feat/project-group-filter branch 4 times, most recently from b2d64b3 to 6877608 Compare November 27, 2026 08:13
decrypted added a commit that referenced this pull request Nov 27, 2026
Upstream 0fce80c..a788fad (404 commits). Conflicts: lazyZodSchema
wrapping (#2, #7), main.css spinner rule (#4), ko/ru locales (#5);
#4's pane-title fade fix dropped (upstream removed that block), outage
nudge moved onto motion-reduce. Fork CI: Azure apt mirror for the
node-pty floor smoke.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Adds a "Project groups" picker to Workspace options (Show section) and the
workspace board's filter menu. Unticked groups, their nested groups, and
their projects, folder workspaces and workspaces leave the sidebar list,
the workspace board and shortcut numbering. An "Ungrouped" entry covers
projects outside any listed group.

The choice persists as hidden group ids, so groups created later stay
visible and ids of deleted or not-yet-loaded remote groups filter
nothing. It is a desktop view filter only: background work, attention
and notifications are unchanged, the jump palette keeps ignoring the
sidebar's project scope, and the phone keeps its own view.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@decrypted
decrypted force-pushed the feat/project-group-filter branch from 6877608 to 43d448a Compare November 30, 2026 11:10
decrypted pushed a commit that referenced this pull request Nov 30, 2026
… it (stablyai#47190)

* ci: lint the files each main push changes, and name the PR that broke it

* ci(main-push-lint): attribute only to commits in the push, keep lookup failures distinct, bound attribution time

* ci(main-push-lint): fail rather than narrow the lint range when the push base or parent cannot be fetched

* ci(main-push-lint): report fileless oxlint errors without a location or attribution

* ci(main-push-lint): report an unexplained oxlint batch failure even when another batch has errors

* ci(main-push-lint): lint every push in its own run, report before attributing, render untrusted paths safely

- Move the lint to its own `Main push lint` workflow with no concurrency group, so a newer
  push can never replace a pending run and drop that push's files (MP-C1-01).
- Diff any nonzero `before`, forced or not; lint every file when a push creates the branch;
  fail when the base or a manual run's parent cannot be fetched (MP-C1-02).
- Label attribution "changed in this push by", name only a single merged PR into this repo
  and branch, show ambiguous PRs, and mark subject-derived numbers as unverified (MP-C1-03).
- Publish annotations and the summary before any PR lookup; bound lookups by a global
  budget, request cap, file cap and first-failure breaker, and memoize PRs by SHA (MP-C1-04).
- End oxlint options with `--` and batch by path characters (MP-C1-05).
- Escape summary cells, tool output and log lines, cap the summary under 1 MiB, and report
  how many candidates oxlint actually linted (MP-C1-06).
- Count a batch only when oxlint printed its Finished line and explained any failure (MP-C1-07).

* test(main-push-lint): pin escaped summary text and cover back-to-back pushes A, B and C (MP-C1-01, MP-C1-06)

* test(main-push-lint): prove the attribution breaker after a successful compare and that the verdict precedes the first lookup (MP-C1-04)

* test(main-push-lint): leave the attribution time bound room on a loaded runner

* ci(main-push-lint): accept oxlint's Finished line under nested configs, keep command-shaped paths out of the runner's command parser

- oxlint 1.94.0 prints "Finished in … on N files using … threads." without "with N rules" when a
  nested .oxlintrc.json applies (mobile/), so a clean push there was reported as unfinished.
- A plain log line that starts with `::` or contains `##[` is a workflow command; a path such as
  `::stop-commands::x.ts` could pause the real annotations. Log lines now show those as \\u escapes.

* ci(main-push-lint): lint the scope of a changed lint policy, plan before installing, and bound what it reports

- MP-C2-01: a push that adds, edits or deletes an .oxlintrc.json, a file a config extends, or the locked
  oxlint version now lints every file that policy governs (the whole tree for the root, the subtree for a
  nested config), next to the touched source files. A failing file the push did not touch names the policy
  change and the commits that made it, not a guessed source PR.
- MP-C2-02: attribution asks for one more path-history entry than the push holds and 100 PR associations;
  a full page that could hide more is labelled partial instead of complete, unique or absent.
- MP-C2-03: Git paths are decoded as strict UTF-8 from its raw bytes; a path that is not valid UTF-8 is
  reported as not linted instead of being passed on as a different path. The summary no longer guesses
  why oxlint excluded a path it was given.
- MP-C2-04: diagnostics may hold U+2028/U+2029; only exit 1 with a parsed error explains a failed run, and
  exit codes, signals, spawn and buffer errors are kept with the run's diagnostics; one lint deadline stops a
  stalled child so earlier batches still report; plain log lines share a 256 KiB budget, annotations are
  capped, and every omission note says how many rows the log really holds.
- MP-C2-05: a commit's parents are read only from its headers, so a root commit whose message has a line
  starting with "parent" stays a root.
- MP-C2-06: a plan step on the bare runner resolves the range and scope first; dependency setup and the
  lint run only when there is something to lint, and an unusable range fails in the plan step.

* ci(main-push-lint): count every changed candidate in the opening log line, including ones a walked directory covers

* ci(main-push-lint): follow extends through any file, keep BOM-led and deleted odd paths right, bound the policy list

- Follow `extends` recursively through every referenced file, whatever its name, with the fixed point ending
  cycles, so a change to a file a shared base extends still lints the consuming config's scope.
- Decode paths with ignoreBOM, so a leading U+FEFF stays part of the name instead of naming another file.
- A deleted path that is not valid UTF-8 has nothing to lint and no longer fails the run.
- List at most 10 policy changes and walked directories in the summary, then a count of the rest.
- Type the stdout/stderr join and the extends cause map for the type-aware code-quality gate.

* ci(main-push-lint): read lint policy the way the pinned oxlint does, keep Git-ignored touched files, bound retained output

- MP-C3-01: policy discovery moves to oxlint-policy.mjs and follows oxlint 1.94: .oxlintrc.json,
  .oxlintrc.jsonc, oxlint.config.ts and oxlint.config.mts in any directory; JSON configs and extended files
  read with comments and trailing commas; `extends` and symlinked configs followed through files of any
  name. A script config, a config that does not parse, or a link out of the repository cannot be read, so
  its scope is linted on every push. Moves count as a delete plus an add, so both scopes are linted.
- MP-C3-02: a touched file under a walked directory is still named when Git's ignore rules match it, since
  oxlint's walk skips such files while it lints a named one; diagnostics reported twice are kept once.
- MP-C3-03: a failing untouched file names every policy change whose scope holds it (up to five, then a
  count), and each config records every changed input it depends on.
- MP-C3-04: each child's output is digested as it ends, so one child's output is the most held at once;
  at most 5,000 errors are kept (the rest counted), messages and unfinished-run excerpts are cut, and each
  annotation is cut before escaping.
- MP-C3-05: the summary cites only the unfinished-run paths actually written to the log, and the plan step
  log says how many changed files are named explicitly.
- Git-heavy test suites get a 120 s timeout, as dozens of short processes outlast the default on a loaded runner.

* ci(main-push-lint): map backslash paths oxlint printed as slashes, say "not linted" for paths oxlint never got

- oxlint 1.94 prints a literal backslash in a reported path as a slash. Each reported name is mapped back to
  the one tracked file it can stand for; when it could be several, the annotation drops its location, names
  the candidates, and attribution says so instead of naming the wrong file.
- Paths that never reached oxlint (not valid UTF-8, a batch the deadline kept from starting, oxlint not
  runnable) are reported as "not linted", apart from runs oxlint started but did not finish.
- Walked-path membership uses a Set, so a branch-creating push with every file walked stays linear.
- The symlinked-config test is skipped on Windows, where a checkout may not create symlinks.

* test(main-push-lint): pin that an error two batches both report is kept once

* ci(main-push-lint): follow linked policy exactly, name every touched file on a walk, keep reports bounded and truthful

- MP-C4-01: a symlink is followed by the exact bytes of its target (no trimming), each hop is an input, and a
  linked config's `extends` resolve from where oxlint opens it, not where the link stores it. JSON configs may
  hold # comments, as oxlint accepts. A config that loads JS plugins counts as unreadable.
- MP-C4-02/03: every touched file is named, even inside a walked directory, since a nested .eslintignore or
  .gitignore can hide it from oxlint's walk. This drops `git check-ignore`, with its pathspec parsing of
  colon-prefixed names and global excludes. The count notes which named files may also be walked.
- MP-C4-04: an untouched failure says how many policy changes cover it before naming up to five, with each
  cause and its commits cut; unreadable inputs stay visible next to known ones; no GitHub request is made when
  there is nothing to look up.
- MP-C4-05: repeats are dropped only across runs, and only for files both walked and named, by fixed-size
  hashes up to a bound (past it, the count says it may include repeats); excerpts are kept for the first
  unfinished runs only.
- MP-C4-06: a spawn failure is "not linted", a run that crashed after reporting errors is "not fully linted".
- MP-C4-07: a reported path two tracked files could have produced is shown as uncertain in the log and the
  summary, both errors are kept, and a failed lookup of tracked paths no longer costs the lint verdict.
- Tests split: policy discovery and walk coverage move to oxlint-policy.test.mjs, with shared workflow fixtures.

* ci(main-push-lint): keep repeats on ambiguous printed paths, follow symlinked directories, count override plugins

- A repeat across runs on a printed path that more than one tracked file can produce is kept and flagged, not
  dropped; without the tracked-path index no repeat is dropped. The index is built once, before linting.
- Symlinked directories on the way to a config or extends target are followed, each link recorded as an input.
- jsPlugins declared inside `overrides` make a config unreadable too; empty lists do not.
- Retention limits not given fall back to the defaults, so a partial limit set keeps real excerpts.
- Policy integration tests assert the rule's annotation on the intended file, not only a failing exit.

* ci(main-push-lint): treat a link target that goes through a name and then '..' as unreadable

The file system resolves name/.. after following name, which may itself be a link, so collapsing it as text can
name the wrong file and plan no scope. Such a link now makes its config unreadable, so the config's scope is
linted on every push.

* ci(main-push-lint): treat name/./.. and name//.. link targets as unreadable too

'.' and empty segments do not move, so they no longer hide a name/.. that the file system resolves after
following a link.

* ci(main-push-lint): keep policy path bytes exact, keep attribution counts visible, label started runs and unverified paths

- MP-C5-01: the policy graph reads Git tree names and link payloads as bytes and decodes them strictly. A name
  that is not valid UTF-8 can no longer overwrite or stand in for a valid one; a link whose target is not valid
  UTF-8 makes its config unreadable (scope linted every push); a config at such a path walks the whole tree.
- MP-C5-02: an untouched failure's explanation is sized for the summary cell and the log line separately, with
  every count first (policy changes, how many have unreadable inputs, how many are shown), each change's input
  count and unreadable marker, and the first change's commits always within budget. A directly edited config
  keeps its unreadable status.
- MP-C5-03: paths in a run that started are "Not fully linted", whatever it printed; "Not linted" is kept for runs
  that never started.
- MP-C5-04: when tracked files cannot be read, every printed path is unverified: no annotation location, an
  explicit "path unverified" in the log and summary, and no PR lookup for it.
- The byte-path tests move to oxlint-policy-bytes.test.mjs.

* ci(main-push-lint): keep the first commit when its input path is long, and walk the tree when an unrepresentable config changes

- The first changed input's path is cut too, so its commits still fit the explanation's budget.
- A config added, changed or deleted at a path that is not valid UTF-8 makes the whole tree walk; deleting an
  ordinary file at such a path still changes no policy.

* ci(main-push-lint): keep the first SHA, policy counts and path notices in clipped output; look up only shown inputs

- MP-C5-02: a policy input's attribution is a short, commit-first form ("c60247760f #7", or why the lookup
  failed), and the explanation clips causes and paths exactly, so the first change and its SHA always fit
  whole after the counts. On the log line the failing file's name is clipped, so a long name cannot push the
  counts off.
- MP-C5-04: the "path unverified" (and "path uncertain") notice leads the log line, the summary location and
  the annotation, so a long path or message is cut after it.
- MP-C6-01: each explanation is planned first with the longest compact attribution, and only the first input of
  each policy change it can show is looked up; a second input the report never shows no longer spends quota.
- Attribution and report tests move to main-push-attribution-report.test.mjs and run through the real log and
  summary with a long failing filename, a long cause and a long first input.

* ci(main-push-lint): put every status and qualifier before variable-length text in each rendered line

The class behind MP-C5-02 and MP-C5-04: a qualifier that followed a long path, cause or filename could be cut
off. Every line the guard renders now leads with its fixed facts and qualifiers and clips the variable parts.

- Attribution log lines: a path notice ([path unverified ...] or [path uncertain ...]) comes first, and every
  row clips the failing file's name, so the status after it always reaches the log.
- "Lint policy changed" lines lead with the unreadable-input status, then the clipped directory, then the cause;
  the summary's policy list puts the same status before each cause.
- The "Linting ..." line gives the range and scope before the clipped list of walked directories.
- An unfetchable base reads "Refusing to narrow the lint range: cannot fetch ...", and the index-failure note
  says what it means before Git's message.
- One extreme-length test runs main() with paths and causes over 1,600 characters, a readable and an unreadable
  tracked-path index, and a stand-in oxlint, and checks every qualifier in every final log and summary line.
decrypted added a commit that referenced this pull request Nov 30, 2026
Upstream a788fad..9fa1d98 (1236 commits). Branches: #2 port detection,
#3 remote auto-connect, #4 reduce motion, #5 keep-awake (squashed to one commit), #6 project sleep,
#7 project-group filter, #8 base-branch hint, #9 mouse history buttons (new in local/build), ci/fork-build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

1 participant