Skip to content

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

Merged
cte merged 1 commit intomainfrom
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 intomainfrom
feat/cli-create-with-session-id

Conversation

@cte
Copy link
Collaborator

@cte cte commented Mar 4, 2026

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
@dosubot dosubot bot 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 main Mar 4, 2026
15 checks passed
@cte cte deleted the feat/cli-create-with-session-id branch March 4, 2026 18:32
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Mar 4, 2026
@github-actions github-actions bot mentioned this pull request Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant