Skip to content

push may upload or share the wrong session for ambiguous prefixes - #14

Open
dipeshbabu wants to merge 3 commits into
subconscious-systems:mainfrom
dipeshbabu:fix/session-selection
Open

dipeshbabu wants to merge 3 commits into
subconscious-systems:mainfrom
dipeshbabu:fix/session-selection

Conversation

@dipeshbabu

Copy link
Copy Markdown

The session lookup returns the first prefix match, even when multiple sessions or harnesses have the same ID. It also interprets numeric IDs as list indexes before checking exact identity.

Prefer exact keys and IDs, require a unique prefix, and accept only conventional positive integers as list indexes. Tests cover ambiguous prefixes, cross-harness duplicate IDs, numeric IDs, whitespace, and missing matches.

Validation: frozen-lockfile dependencies, typecheck, full tests, npm build, and bundled CLI version/help smoke checks. Ubuntu/Windows Node 20/22 CI passed before PR creation on this exact head commit (4527263): https://github.com/dipeshbabu/vibi-cli/actions/runs/37263035771

This branch includes the CI foundation from #2; merging that PR first removes the common CI changes from this diff.

Closes #13.

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.

push may upload or share the wrong session for ambiguous prefixes

1 participant