Skip to content

fix(canvas): place new terminals near Home in free space - #76

Merged
howdeploy merged 1 commit into
howdeploy:mainfrom
teo-nex:fix/nearby-terminal-placement
Sep 26, 2026
Merged

howdeploy merged 1 commit into
howdeploy:mainfrom
teo-nex:fix/nearby-terminal-placement

Conversation

@teo-nex

@teo-nex teo-nex commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

New terminals currently use sessions.length for placement, so with about 40 open cards the next one appears roughly 10,000 canvas pixels below Home even when nearby space is free. New terminal and agent cards now take the nearest free slot in a compact two-dimensional search around Home, avoiding existing canvas cards and reusing space after cards move or close. Pending launches reserve their slots, while an explicit drop position still takes precedence.

Validation: 8 focused placement tests (including 45-card growth and freed-slot reuse) and the full 859-test suite passed; npm run typecheck, npm run build, and git diff --check passed.

@teo-nex teo-nex closed this Sep 24, 2026
@teo-nex teo-nex reopened this Sep 24, 2026
@howdeploy
howdeploy merged commit f86be16 into howdeploy:main Sep 26, 2026
6 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.

2 participants