-
-
Notifications
You must be signed in to change notification settings - Fork 0
Fix/cleo-retry-and-tess-trigger #936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kaseonedge
wants to merge
7
commits into
fix/factory-play
Choose a base branch
from
fix/cleo-retry-and-tess-trigger
base: fix/factory-play
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Added highly visible RETRY CONFIGURATION section at the top of all CLI agent scripts. This provides immediate visibility into iteration limits - a key operational metric. Changes: - Added prominent banner showing MAX_RETRIES configuration - Displays configuration source (env var or default) - Positioned early in script output (right after environment setup) - Consistent formatting across all CLIs Banner format: ════════════════════════════════════════════════════════════════ ║ RETRY CONFIGURATION ║ ════════════════════════════════════════════════════════════════ 🔄 Maximum Iterations: 10 📍 Source: EXECUTION_MAX_RETRIES environment variable ════════════════════════════════════════════════════════════════ Updated CLIs: - Factory: Uses FACTORY_MAX_RETRIES (default: 10) - Codex: Uses CODEX_MAX_RETRIES (default: 5) - Cursor: Uses CURSOR_MAX_RETRIES (default: 5) - OpenCode: Uses OPENCODE_MAX_RETRIES (default: 10, supports unlimited with 0) - Claude (Rex/Cleo/Tess): Uses CLAUDE_MAX_RETRIES (default: 10) All fall back to EXECUTION_MAX_RETRIES then to their respective defaults. This makes it immediately clear how many iterations each agent will attempt, which is critical for cost estimation and operational monitoring.
📋 GitOps Changes SummaryModified Applications:Modified Database Resources:📝 Detailed Diff |
Previous fix quoted the heredoc delimiter which caused bash syntax errors because command substitution \$(cat <<EOF) cannot contain quoted heredocs. Fixed by: - Reverted to unquoted delimiter: <<TESS_EOF (instead of <<'TESS_EOF') - Escaped all backticks in documentation: \` instead of \` - This prevents command execution while maintaining valid bash syntax The issue was that bash cannot parse quoted heredocs inside command substitutions. Escaping backticks achieves the same goal (preventing execution) without syntax errors.
Escaped the remaining unescaped backticks in kubectl examples. All backticks in the INITIAL_GUIDANCE heredoc are now escaped.
The else block at line 1860 had no indentation, causing it to close the outer if statement at line 1757 instead of the nested if at line 1844. This created a second else block at line 2067, which bash rejected. Fixed by indenting line 1860 to match its corresponding if statement.
The if statement at line 1844 was never closed with a fi. The else at line 1860 had its closing fi at line 2065, but that only closed the nested if/elif/elif chain (lines 1952-2007). Added fi at line 2066 to properly close the if at line 1844. Structure: - 1757: if GH_AVAILABLE - 1844: if CI_JSON empty - post no-CI review - 1860: else - 1952: if FAILED_CHECKS > 0 - 1980: elif PENDING_CHECKS > 0 - 2007: elif SUCCESS_CHECKS == TOTAL - 2040: else - 2065: fi (closes 1952) - 2066: fi (closes 1844) ← THIS WAS MISSING - 2068: else (GH not available) - 2072: fi (closes 1757)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added highly visible RETRY CONFIGURATION section at the top of all CLI agent scripts.
This provides immediate visibility into iteration limits - a key operational metric.
Changes:
Banner format:
════════════════════════════════════════════════════════════════
║ RETRY CONFIGURATION ║
════════════════════════════════════════════════════════════════
🔄 Maximum Iterations: 10
📍 Source: EXECUTION_MAX_RETRIES environment variable
════════════════════════════════════════════════════════════════
Updated CLIs:
All fall back to EXECUTION_MAX_RETRIES then to their respective defaults.
This makes it immediately clear how many iterations each agent will attempt,
which is critical for cost estimation and operational monitoring.
Note
Adds a prominent RETRY CONFIGURATION banner (with source and value) early in Factory and OpenCode agent scripts, standardizing iteration-limit visibility via env vars or defaults.
code_factory_container-base.sh.hbs
to print a high-visibilityRETRY CONFIGURATION
banner showingMAX_RETRIES
and its source (env/default) near startup.code_opencode_container-base.sh.hbs
similarly to surfaceMAX_RETRIES
and source early in output.templates/agent-templates-factory.yaml
andtemplates/agent-templates-opencode.yaml
to include new container script content.Written by Cursor Bugbot for commit 6b4b598. This will update automatically on new commits. Configure here.