Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

feat(cli): support --create-with-session-id and UUID session validation - #11859

Merged
cte merged 1 commit into
mainfrom
feat/cli-create-with-session-id
Mar 4, 2026
Merged

feat(cli): support --create-with-session-id and UUID session validation#11859
cte merged 1 commit into
mainfrom
feat/cli-create-with-session-id

Conversation

@cte

@ctecte commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • rename the public new-task session flag from --task-id to --create-with-session-id for parity with --session-id
  • enforce UUID session-id validation for:
    • --create-with-session-id
    • --session-id
    • stdin stream start.taskId
  • keep create-session-id wiring for both print and TUI first-task flows
  • add integration coverage for create+resume loading the correct session ID

Integration Coverage Added

  • new case: apps/cli/scripts/integration/cases/create-with-session-id-resume-loads-correct-session.ts
  • validates that:
    • sessions created with explicit custom IDs are listed in roo list sessions
    • resuming each session by ID loads that exact session (asserted from shutdown control taskId in stream output)

Testing

  • pnpm --filter @roo-code/cli test src/commands/cli/__tests__/parse-stdin-command.test.ts
  • pnpm --filter @roo-code/types test src/__tests__/cli.test.ts
  • pnpm --filter @roo-code/cli check-types
  • pnpm --filter @roo-code/cli lint
  • pnpm --filter @roo-code/cli test:integration -- --match create-with-session-id-resume-loads-correct-session
  • pre-push hook also ran monorepo check-types successfully

rename public task id flag to --create-with-session-id
validate session ids as UUIDs for create/resume and stdin start.taskId
add integration coverage for create+resume loading correct session
@dosubotdosubotBot added size:XL This PR changes 500-999 lines, ignoring generated files. Enhancement New feature or request labels Mar 4, 2026
@cte
cte merged commit 0b0b33e into mainMar 4, 2026
15 checks passed
@cte
cte deleted the feat/cli-create-with-session-id branch March 4, 2026 18:32
@github-project-automationgithub-project-automationBot moved this from New to Done in Roo Code RoadmapMar 4, 2026
@github-actionsgithub-actionsBot mentioned this pull request Mar 4, 2026
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

EnhancementNew feature or requestsize:XLThis PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@cte