Skip to content

Cover every agent-side path validator with cross-platform tests - #49

Open
foundev wants to merge 1 commit into
masterfrom
fix/issue-47-path-validator-coverage
Open

foundev wants to merge 1 commit into
masterfrom
fix/issue-47-path-validator-coverage

Conversation

@foundev

@foundev foundev commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

Adds the regression coverage issue #47 asks for on top of the either-platform validator from #48.

Every agent-side entry point now has a test that only passes if it keeps delegating to acpvalidate.AbsolutePath:

  • v1 client: LoadSession, ResumeSession, ListSessions accept / (fails on Windows CI under a host-relative check), and NewSessionWithOptions accepts drive-absolute and UNC paths from a POSIX host.
  • v1 mcp: NewSession, ResumeSession, ForkSession accept /.
  • unstable.ForkSession accepts /.
  • draft v2: ResumeSession, ListSessions accept /.
  • v2/mcp: stdio command paths accept both a POSIX and a Windows absolute form.

The host-local checks in clienthost and the v2 runner are unchanged and intentionally stay host-native.

Verification: go test -race ./..., go vet ./..., and GOOS=windows go vet ./... all pass locally.

Fixes #47

@foundev

foundev commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator Author

Approved for merge by Ryan (@foundev).

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.

Follow-up to #45: cover every agent-side path validator and the POSIX-to-Windows direction

1 participant