Skip to content

feat(workflows): add 065 post-auth mount session workflow#124

Merged
khaliqgant merged 1 commit intomainfrom
codex/workflow-065-post-auth-mount-session
May 9, 2026
Merged

feat(workflows): add 065 post-auth mount session workflow#124
khaliqgant merged 1 commit intomainfrom
codex/workflow-065-post-auth-mount-session

Conversation

@khaliqgant
Copy link
Copy Markdown
Member

Summary

  • Adds workflows/065-post-auth-mount-session.ts, the supervisor-pattern agent-relay workflow that drives the cross-repo post-auth mount-session implementation across Cloud (AgentWorkforce/cloud#498) and Relayfile.
  • Orchestrates a lead architect (Claude Opus) plus Codex/Claude workers for cloud impl, SDK impl, E2E impl, docs, self-reflection, self-review, and peer review — capturing gates, repairing failures, then pushing branches and opening PRs via gh.
  • Companion to merged PRs feat(sdk): add post-auth mount workspace helper #122 / docs: surface mountWorkspace SDK helper in README; fix guide code-fence langs #123 (which landed the SDK helper and docs that this workflow produces); this PR lands the orchestration script itself so future runs are reproducible.

Test plan

  • agent-relay run workflows/065-post-auth-mount-session.ts executes the workflow end-to-end against a fresh worktree
  • Workflow file type-checks under the existing workflows/ tsconfig
  • No runtime regressions in adjacent workflow scripts

🤖 Generated with Claude Code

Add the supervisor-pattern workflow that orchestrates the cross-repo
post-auth mount-session implementation across Cloud (#498) and Relayfile,
covering contract lock, parallel impl, evidence capture, self/peer
review, and PR creation.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 9, 2026

Warning

Rate limit exceeded

@khaliqgant has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 4 minutes and 31 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: dd87da91-4e1d-4547-96dc-6a2b5a2802b7

📥 Commits

Reviewing files that changed from the base of the PR and between 458d93c and 6260f08.

📒 Files selected for processing (1)
  • workflows/065-post-auth-mount-session.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/workflow-065-post-auth-mount-session

Comment @coderabbitai help to get the list of available commands and usage tips.

@khaliqgant khaliqgant merged commit 29ca395 into main May 9, 2026
6 of 7 checks passed
@khaliqgant khaliqgant deleted the codex/workflow-065-post-auth-mount-session branch May 9, 2026 14:17
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 2 potential issues.

View 5 additional findings in Devin Review.

Open in Devin Review

'BRANCH=$(git rev-parse --abbrev-ref HEAD)',
'git push -u origin "$BRANCH"',
'BODY=$(mktemp)',
'cat > "$BODY" <<EOF',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Unquoted heredoc <<EOF causes backtick content to be executed as shell commands, garbling PR bodies

Both push-and-open-relayfile-pr (line 875) and push-and-open-cloud-pr (line 912) use <<EOF (unquoted delimiter) to write PR body content. In bash, an unquoted heredoc delimiter causes variable expansion and command substitution. The PR body text contains markdown backtick-fenced terms like `mountWorkspace`, `ensureMountedWorkspace`, `relayfile-mount`, `MountedWorkspaceHandle`, `POST /api/v1/workspaces/:workspaceId/relayfile/mount-session`, `expiresAt`, etc. Bash interprets these backtick pairs as command substitutions, attempts to execute the enclosed text as commands (which fail with "command not found"), and replaces each backtick expression with empty output. The resulting PR bodies will have missing/garbled text (e.g., - add the Relayfile SDK post-auth / flow instead of the intended content). The fix is to quote the heredoc delimiter: <<'EOF'.

Suggested change
'cat > "$BODY" <<EOF',
'cat > "$BODY" <<\'EOF\'',
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

'BRANCH=$(git rev-parse --abbrev-ref HEAD)',
'git push -u origin "$BRANCH"',
'BODY=$(mktemp)',
'cat > "$BODY" <<EOF',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Unquoted heredoc <<EOF in cloud PR body causes same backtick command substitution issue

Same root cause as the relayfile PR body: push-and-open-cloud-pr uses <<EOF (unquoted) on line 912, causing backtick content like `POST /api/v1/workspaces/:workspaceId/relayfile/mount-session` and `expiresAt` to be interpreted as shell command substitutions. This garbles the cloud PR body text created via gh pr create --body-file.

Suggested change
'cat > "$BODY" <<EOF',
'cat > "$BODY" <<\'EOF\'',
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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.

1 participant