Skip to content

fix(ci): fix cron failures, exclude PRs, and propose TUI latency fix (#82984) - #82987

Open
ruok-dev wants to merge 1 commit into
anthropics:mainfrom
ruok-dev:main
Open

fix(ci): fix cron failures, exclude PRs, and propose TUI latency fix (#82984)#82987
ruok-dev wants to merge 1 commit into
anthropics:mainfrom
ruok-dev:main

Conversation

@ruok-dev

Copy link
Copy Markdown

Summary
This PR addresses several issues regarding repository automation workflows, script efficiency, and provides a proposed architectural fix for the TUI input latency degradation under high agent workloads.

Resolves #82984

Proposed Changes

  1. Fixing GitHub Actions Cron/Scheduled Failures
  • Issue: The workflows triggered by schedule/cron (sweep.yml and auto-close-duplicates.yml) were failing because github.event.repository.name is not populated on scheduled events.

  • Fix: Updated sweep.ts, auto-close-duplicates.ts, and backfill-duplicate-comments.ts to resolve the repository owner and name by parsing the built-in GITHUB_REPOSITORY environment variable (e.g., owner/repo). Removed the redundant manual environment variables from the workflow YAML files.

  1. Filtering Out Pull Requests
  • Issue: The issue deduplication scripts (auto-close-duplicates.ts and backfill-duplicate-comments.ts) fetch from the /repos/{owner}/{repo}/issues endpoint, which by default returns both issues and pull requests.
  • Fix: Updated the GitHubIssue interface and added a !issue.pull_request check to skip Pull Requests during issue filtering.
  1. Draft Fix for TUI Keystroke Latency ([BUG] Interactive input latency degrades to unusable well before the 1000-agent workflow cap #82984)
  • Added proposed_fix_tui_latency.md to document the root cause and proposed virtualization/memoization solution in React/Ink to eliminate TUI input latency degradation during large workflows (e.g. 700+ agents).

Verification Results

  • Ran dry-runs for sweep.ts, auto-close-duplicates.ts, and backfill-duplicate-comments.ts using simulated environment variables.
  • Verified that repository metadata parses correctly and the scripts compile without errors.

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.

[BUG] Interactive input latency degrades to unusable well before the 1000-agent workflow cap

1 participant