Skip to content

Conversation

@sestinj
Copy link
Contributor

@sestinj sestinj commented Jan 5, 2026

Summary

  • Fixes SyntaxError when agent output contains backticks (e.g., baseBranch)
  • Uses environment variables instead of direct GitHub Actions expression interpolation in the Update Check Run step

Problem

When the Continue agent output contains backticks, they break the JavaScript template literal in the github-script action:

const output = `${{ steps.run.outputs.output }}`;
// If output contains `baseBranch`, it becomes:
const output = `Removes `baseBranch` prop...`;
//                      ^ breaks the template literal

This causes: SyntaxError: Unexpected identifier 'baseBranch'

Solution

Pass values through environment variables instead of direct interpolation:

env:
  AGENT_OUTPUT: ${{ steps.run.outputs.output }}
with:
  script: |
    const output = process.env.AGENT_OUTPUT || '';

This is a standard pattern for handling dynamic content in github-script actions.

Test plan

  • Trigger the Continue Agents workflow on a PR where agent output contains backticks

🤖 Generated with Claude Code


Summary by cubic

Prevents SyntaxError in github-script when agent output includes backticks by passing values through environment variables instead of inline interpolation. Also ensures check run IDs are parsed correctly.

  • Bug Fixes
    • Use env vars (AGENT_OUTPUT, AGENT_ERROR, AGENT_SUCCESS, CHECK_RUN_ID) in the Update Check Run step.
    • Read values via process.env and parseInt(CHECK_RUN_ID), avoiding template literals that break on backticks.

Written for commit 92bebf7. Summary will update on new commits.

When agent output contains backticks (e.g., `baseBranch`), they break
the JavaScript template literal syntax in the Update Check Run step,
causing SyntaxError: Unexpected identifier.

Fix by passing values through environment variables instead of direct
GitHub Actions expression interpolation. This is a common pattern for
handling dynamic content in github-script actions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@sestinj sestinj requested a review from a team as a code owner January 5, 2026 01:19
@sestinj sestinj requested review from Patrick-Erichsen and removed request for a team January 5, 2026 01:19
@continue-staging
Copy link

All Green - Keep your PRs mergeable

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts


Unsubscribe from All Green comments

1 similar comment
@continue
Copy link
Contributor

continue bot commented Jan 5, 2026

All Green - Keep your PRs mergeable

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts


Unsubscribe from All Green comments

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jan 5, 2026
@github-actions
Copy link

github-actions bot commented Jan 5, 2026

✅ Review Complete

Code Review Summary

⚠️ AI review failed. Please check the Continue API key and configuration.

Troubleshooting

  • Verify the CONTINUE_API_KEY secret is set correctly
  • Check that the organization and config path are valid
  • Ensure the Continue service is accessible

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants