Skip to content

fix: investigate lattice layout sessions#70

Merged
phasetr merged 3 commits into
mainfrom
fix/lattice-layout-active-sessions
May 17, 2026
Merged

fix: investigate lattice layout sessions#70
phasetr merged 3 commits into
mainfrom
fix/lattice-layout-active-sessions

Conversation

@phasetr
Copy link
Copy Markdown
Owner

@phasetr phasetr commented May 17, 2026

Summary

  • investigate lattice-system layout switching warning for workspace 02 / project lat
  • fix active session detection or layout setup path as needed

Reproduction context

With the provided enkan-repl-target-directories / enkan-repl-projects config, launching lattice-system then pressing C-M-l in examples reports:

Setting up layout for 0 actual sessions in workspace '02' for project 'lat'...
No active sessions found in workspace '02'
Refreshed 1 tmux mirror buffer(s) for workspace 02

Expected behavior: the screen/layout switches appropriately for project lat.

Test plan

  • pending

@phasetr
Copy link
Copy Markdown
Owner Author

phasetr commented May 17, 2026

Implemented the fix and pushed commit 3f95fe5.

What changed:

  • restore missing workspace session-list from live tmux during reattach, covering the observed state where workspace 02 had target-directories for lat but session-list nil
  • centralize buffer/target matching so path-named enkan buffers and tmux fallback mirrors are handled through one code path
  • apply the unified matching to layout setup, send target resolution, prefix directory selection, workspace buffer filtering, and workspace buffer counts

Validation:

  • reproduced the actual local state: enkan-02 has window lattice-system at /Users/sekine/dev/self/lattice-system while persisted workspace 02 had :session-list nil
  • verified reattach now reconstructs ws02 as :session-list ((1 . "lat"))
  • make test: 281/281 passing
  • make compile: passing
  • make clean: removed generated .elc files

@phasetr phasetr merged commit 289b99f into main May 17, 2026
1 check passed
@phasetr phasetr deleted the fix/lattice-layout-active-sessions branch May 17, 2026 16:45
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 0.19.6 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant