diff --git a/.github/workflows/agent-feedback-linear-sync.yml b/.github/workflows/agent-feedback-linear-sync.yml index 3d8f945de1a..0f081bb87db 100644 --- a/.github/workflows/agent-feedback-linear-sync.yml +++ b/.github/workflows/agent-feedback-linear-sync.yml @@ -40,6 +40,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: read + issues: write pull-requests: write steps: - name: Sync to Linear @@ -92,14 +93,14 @@ jobs: const parentTitle = `PR #${prNumber} agent feedback rollup`; const search = await linear( - `query($q: String!) { - issueSearch(query: $q, first: 5) { + `query($title: String!) { + issues(filter: { title: { eq: $title } }, first: 5) { nodes { id identifier title } } }`, - { q: `team:Termux-monorepo_linear title:"${parentTitle}"` } + { title: parentTitle } ); - let parentId = search.issueSearch?.nodes?.find( + let parentId = search.issues?.nodes?.find( n => n.title === parentTitle )?.id; diff --git a/.github/workflows/agent-jules-on-issues.yml b/.github/workflows/agent-jules-on-issues.yml index 19a0ccf8296..cf89ed4866f 100644 --- a/.github/workflows/agent-jules-on-issues.yml +++ b/.github/workflows/agent-jules-on-issues.yml @@ -64,20 +64,24 @@ jobs: if (comments.some(c => c.body && c.body.includes(marker))) { core.info('Already acknowledged'); } else { - await github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: issue, - body: [ - marker, - `๐Ÿ‘€ **Jules summoned** on issue #${issue} via label \`jules\`.`, - ``, - `Jules (Google Labs) will plan โ†’ implement in a Cloud VM โ†’ open a PR.`, - `Coordination: prior open agent PRs are injected into the task prompt.`, - ``, - `Tracking: ${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`, - ].join('\n'), - }); + try { + await github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: issue, + body: [ + marker, + `๐Ÿ‘€ **Jules summoned** on issue #${issue} via label \`jules\`.`, + ``, + `Jules (Google Labs) will plan โ†’ implement in a Cloud VM โ†’ open a PR.`, + `Coordination: prior open agent PRs are injected into the task prompt.`, + ``, + `Tracking: ${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`, + ].join('\n'), + }); + } catch (e) { + core.info('Comment skip: ' + e.message); + } } const { data: prs } = await github.rest.pulls.list({ owner: context.repo.owner, @@ -148,19 +152,23 @@ jobs: per_page: 30, }); if (comments.some(c => c.body && c.body.includes(marker))) return; - await github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: issue, - body: [ - marker, - `@jules Please implement a fix for this issue.`, - ``, - `Base your work on **master-staging**. Prefer minimal diffs; respect AGENTS.md.`, - `Check open agent PRs first โ€” do not edit files already claimed by another agent on this issue.`, - `Open a PR when done and post on the issue.`, - ].join('\n'), - }); + try { + await github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: issue, + body: [ + marker, + `@jules Please implement a fix for this issue.`, + ``, + `Base your work on **master-staging**. Prefer minimal diffs; respect AGENTS.md.`, + `Check open agent PRs first โ€” do not edit files already claimed by another agent on this issue.`, + `Open a PR when done and post on the issue.`, + ].join('\n'), + }); + } catch (e) { + core.info('Comment skip: ' + e.message); + } jules-on-mention: if: | diff --git a/.github/workflows/agent-review-auto-jules.yml b/.github/workflows/agent-review-auto-jules.yml index a4342da80d3..aedcf4e014d 100644 --- a/.github/workflows/agent-review-auto-jules.yml +++ b/.github/workflows/agent-review-auto-jules.yml @@ -144,12 +144,16 @@ jobs: ``, `Agent: Grok orchestration ยท Profile: https://x.com/grok`, ].filter(Boolean).join('\n'); - await github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: prNumber, - body, - }); + try { + await github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: prNumber, + body, + }); + } catch (e) { + core.info('Comment skip: ' + e.message); + } invoke-jules-api: needs: detect-bot-feedback diff --git a/.github/workflows/gemini-dispatch.yml b/.github/workflows/gemini-dispatch.yml index 07f1109e9ad..43186230f3f 100644 --- a/.github/workflows/gemini-dispatch.yml +++ b/.github/workflows/gemini-dispatch.yml @@ -129,12 +129,16 @@ jobs: } } if (context.payload.comment || context.payload.review) { - await github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: number, - body: `๐Ÿค– **Gemini CLI** received your request (\`${cmd}\`). Tracking: ${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`, - }); + try { + await github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: number, + body: `๐Ÿค– **Gemini CLI** received your request (\`${cmd}\`). Tracking: ${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`, + }); + } catch (e) { + core.info('Comment skip: ' + e.message); + } } triage: diff --git a/.github/workflows/gemini-invoke.yml b/.github/workflows/gemini-invoke.yml index e247f04cf97..cc41ae24eee 100644 --- a/.github/workflows/gemini-invoke.yml +++ b/.github/workflows/gemini-invoke.yml @@ -28,7 +28,9 @@ jobs: persist-credentials: false - name: Run Gemini CLI assistant + id: gemini uses: google-github-actions/run-gemini-cli@v0 + continue-on-error: true env: GEMINI_CLI_TRUST_WORKSPACE: 'true' GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -55,3 +57,8 @@ jobs: Perform the request within free-tier limits. Prefer analysis + concrete suggestions or minimal patches. If code changes are required and you cannot push, describe the exact diff and next steps for Jules or a human. Never invent work outside the proposal registry process. Never commit secrets. + + - name: Report Gemini CLI assistant status + if: steps.gemini.outcome == 'failure' + run: | + echo "::warning title=Gemini CLI Assistant::Gemini CLI assistant step encountered an error or hit rate/quota limits." diff --git a/.github/workflows/gemini-review.yml b/.github/workflows/gemini-review.yml index 3afb9c076ab..8812e3297b2 100644 --- a/.github/workflows/gemini-review.yml +++ b/.github/workflows/gemini-review.yml @@ -29,7 +29,9 @@ jobs: fetch-depth: 0 - name: Run Gemini CLI PR review + id: gemini uses: google-github-actions/run-gemini-cli@v0 + continue-on-error: true env: GEMINI_CLI_TRUST_WORKSPACE: 'true' GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -52,3 +54,8 @@ jobs: If this is a Jules PR, focus on gaps Jules may have missed rather than rewriting the same work. Additional context: ${{ inputs.additional_context }} + + - name: Report Gemini CLI PR review status + if: steps.gemini.outcome == 'failure' + run: | + echo "::warning title=Gemini CLI PR Review::Gemini CLI review step encountered an error or hit rate/quota limits." diff --git a/.github/workflows/gemini-triage.yml b/.github/workflows/gemini-triage.yml index 3441b11fac0..5558ec382ca 100644 --- a/.github/workflows/gemini-triage.yml +++ b/.github/workflows/gemini-triage.yml @@ -28,7 +28,9 @@ jobs: persist-credentials: false - name: Run Gemini CLI triage + id: gemini uses: google-github-actions/run-gemini-cli@v0 + continue-on-error: true env: GEMINI_CLI_TRUST_WORKSPACE: 'true' GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -50,3 +52,8 @@ jobs: Additional context: ${{ inputs.additional_context }} Stay within free-tier good citizenship (concise, no speculative long work). + + - name: Report Gemini CLI triage status + if: steps.gemini.outcome == 'failure' + run: | + echo "::warning title=Gemini CLI Triage::Gemini CLI triage step encountered an error or hit rate/quota limits." diff --git a/termux-multi-agent/dashboard.py b/termux-multi-agent/dashboard.py index 1bead032e1c..ebc533b4d38 100644 --- a/termux-multi-agent/dashboard.py +++ b/termux-multi-agent/dashboard.py @@ -47,7 +47,16 @@ def make_dashboard(): # Header info now_str = datetime.now().strftime("%Y-%m-%d %H:%M:%S") header_text = Text() - header_text.append("โšก TERMUX MULTI-AGENT PARALLEL TELEMETRY โšก\n", style="bold yellow") + + # Pulsing active heartbeat indicator + is_even = int(time.time()) % 2 == 0 + heartbeat = "โ—" + heartbeat_style = "bold green" if is_even else "dim green" + + header_text.append("โšก TERMUX MULTI-AGENT PARALLEL TELEMETRY โšก ", style="bold yellow") + header_text.append("[", style="dim") + header_text.append(heartbeat, style=heartbeat_style) + header_text.append(" LIVE]\n", style="dim") header_text.append(f"Last Sync: {now_str} | File: {TELEMETRY_LOG}", style="dim") header_panel = Panel( @@ -110,15 +119,15 @@ def make_dashboard(): except ValueError: pass - # Beautiful styled status tag + # Beautiful styled status tag with color-blind accessible symbols if level == "SUCCESS": - status_str = Text("SUCCESS", style="bold green") + status_str = Text("โœ… SUCCESS", style="bold green") elif level == "RETRY": - status_str = Text("RETRYING", style="bold yellow") + status_str = Text("๐Ÿ”„ RETRYING", style="bold yellow") elif level == "CRITICAL": - status_str = Text("CRITICAL", style="bold red") + status_str = Text("๐Ÿšจ CRITICAL", style="bold red") else: - status_str = Text("PROCESSING", style="bold blue") + status_str = Text("โณ PROCESSING", style="bold blue") table.add_row( target,