Skip to content

feat(sidebar): multi-project session list union + expand mode enum - #306

Merged
jeonghun-jj-lee merged 1 commit into
local/amicodefrom
feat/amicode-839-sidebar-mode-enum
Sep 6, 2026
Merged

jeonghun-jj-lee merged 1 commit into
local/amicodefrom
feat/amicode-839-sidebar-mode-enum

Conversation

@jeonghun-jj-lee

Copy link
Copy Markdown
Contributor

Summary

Fork-side changes for harmoniqs/amicode#839 — multi-project session experience.

Change A — session list union

sessionListDirectories() always unions opened + server-registered projects (removed the early-return shortcut). Sessions from all historical projects now appear regardless of which project is currently open.

  • helpers.ts: union rewrite with dedup + empty-entry filter
  • helpers.test.ts: 4 new tests (union, server-only, dedup, empty filter)

Change B (app side) — expand mode enum

Replace autoExpand: boolean with mode: "none" | "expand" | "reset" across the notification layer:

  • amicode-workspace-projects.ts: notifyProjectSelected(path, mode) signature + ActiveProjectMode type export
  • amicode-workspace-projects.test.ts: updated to match new API
  • session.tsx: session open sends "expand"
  • session-composer-controls.ts: project selector sends "reset"

Test results

  • helpers.test.ts: 29/29 pass
  • amicode-workspace-projects.test.ts: 9/9 pass
  • Typecheck: clean

Companion to harmoniqs/amicode#841.

…839)

Change A: sessionListDirectories() always unions opened + server-registered
projects (no early-return shortcut), so sessions from all historical projects
appear regardless of which project is currently open.

Change B (app side): replace autoExpand boolean with mode enum
("none" | "expand" | "reset") across notifyProjectSelected, session open,
and project-selector callsites.

- helpers.ts: union rewrite + dedup + empty-entry filter
- helpers.test.ts: 4 new tests (union, server-only, dedup, empty filter)
- amicode-workspace-projects.ts: notifyProjectSelected(path, mode) signature
- session.tsx: session open sends "expand"
- session-composer-controls.ts: project selector sends "reset"

Companion to harmoniqs/amicode#839.
@coderabbitai

coderabbitai Bot commented Sep 6, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: ffe30078-0a71-4f70-9395-6958da661e03


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jeonghun-jj-lee
jeonghun-jj-lee merged commit bc7a112 into local/amicode Sep 6, 2026
3 checks passed
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