Skip to content

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

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

fix(agentapi): fix misleading attempt counter in wait-for-start script#734
zedkipp merged 2 commits intomainfrom
zedkipp/fix-agent-attempt-counter

Conversation

@zedkipp
Copy link
Contributor

@zedkipp zedkipp commented Feb 17, 2026

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
Copy link
Member

@matifali matifali left a comment

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
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
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

Comments