Skip to content

fix(agentapi): fix misleading attempt counter in wait-for-start script - #734

Merged
zedkipp merged 2 commits into
mainfrom
zedkipp/fix-agent-attempt-counter
Feb 18, 2026
Merged

zedkipp merged 2 commits into
mainfrom
zedkipp/fix-agent-attempt-counter

Conversation

@zedkipp

@zedkipp zedkipp commented Feb 17, 2026 •

Copy link
Copy Markdown
Contributor

This PR fixes misleading output from the agentapi module's agentapi-wait-for-start.sh script.

The log message showed ($i/15) where $i ranged from 1-150, making it look like the counter overshot its maximum. This change extracts the iteration count into a max_attempts variable and uses it consistently.

Before:
start-attempts

After:
start-attempts-fix

Relates to https://redirect.github.com/coder/registry/issues/733

@matifali
matifali requested review from 35C4n0r and removed request for matifali February 18, 2026 08:05

@matifali matifali left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.. Thanks

@matifali matifali added the version:patch Add to PRs requiring a patch version upgrade label Feb 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Version Bump Required

One or more modules in this PR need their versions updated.

To fix this:

  1. Run the version bump script locally:
    ./.github/scripts/version-bump.sh patch
  2. Commit the changes:
    git add . && git commit -m "chore: bump module versions (patch)"
  3. Push your changes

The CI will automatically re-run once you push the updated versions.

@zedkipp
zedkipp enabled auto-merge (squash) February 18, 2026 16:09
Zach Kipp added 2 commits February 18, 2026 09:12
The log message showed ($i/15) where $i ranged from 1-150, making
it look like the counter overshot its maximum. This change extracts
the iteration count into a max_attempts variable and uses it consistently.
@zedkipp
zedkipp force-pushed the zedkipp/fix-agent-attempt-counter branch from 3fc2152 to ed2f59c Compare February 18, 2026 16:12
@zedkipp
zedkipp merged commit 8defcb2 into main Feb 18, 2026
4 checks passed
@zedkipp
zedkipp deleted the zedkipp/fix-agent-attempt-counter branch February 18, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

version:patch Add to PRs requiring a patch version upgrade

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants