You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] Document run-duration-ms action output and Duration footer field #226
The infer-action GitHub Action now tracks and surfaces the agent's run duration. This was added in inference-gateway/infer-action#80 (resolves inference-gateway/infer-action#71) and is not yet reflected on the github-action.md docs page. Two user-facing surfaces need documenting:
New action output run-duration-ms - wall-clock duration of the agent run in milliseconds (0 if unavailable). It joins the existing result / exit-code / pr-url / failed-tool-calls-count / total-tool-calls-count outputs and is referenced the same way: ${{ steps.<id>.outputs.run-duration-ms }}.
New Duration field in the result-comment footer - rendered in the metadata line (alongside Model, Exit Code, Tokens, Cost) as **Duration:** <value>. The value is human-readable: 0s, 1s, 1m 0s, 1h 1m 1s, and shows - when the duration is unavailable. The measured window is spawn-to-exit of the infer agent child, so it excludes CLI install / Node setup time.
Affected page
github-action.md
## Outputs table - add a run-duration-ms row.
### Result comment section - add Duration to the bulleted list of footer fields, and add the **Duration:** ... line to the example footer code block.
The run-duration-ms output is declared in action.yml; the Duration footer field is rendered in src/post-results.ts via the shared src/duration.ts helper.
Acceptance Criteria
The ## Outputs table in github-action.md includes a run-duration-ms row described as "Wall-clock duration of the agent run in milliseconds (0 if unavailable)."
The ### Result comment section lists the Duration footer field and notes its format (0s / 1m 0s / 1h 1m 1s, - when unavailable).
The example result-footer code block shows the **Duration:** ... line.
Wording matches the run-duration-ms description in action.yml.
Add Duration to the ### Result comment footer field list (with format notes)
Add **Duration:** ... line to the example footer code block
Run lint:md + format:check (both pass)
Commit and open PR, move Status = QA
What changed
Outputs table - new run-duration-ms row, placed between pr-url and failed-tool-calls-count to match the order in action.yml. Description matches action.yml verbatim: "Wall-clock duration of the agent run in milliseconds (0 if unavailable)."
Result comment section - new Duration bullet describing the human-readable format (0s / 1m 0s / 1h 1m 1s), the — shown when unavailable, and the spawn-to-exit measurement window (excludes CLI install / Node setup). It cross-links the run-duration-ms output.
Example footer code block - added **Duration:** 1m 0s to the metadata line in the exact position the action renders it (after Exit Code, before View Job).
All four acceptance criteria are met. npm run format:check and npm run lint:md both pass.
Note on the unavailable indicator: the issue describes it as -, but the action's buildFooter actually renders an em dash (—); the docs reflect the real output. Flag it if you'd prefer the ASCII form.
Activity
edenreich commentedon Jun 14, 2026
@claude Can you document it? use /maintainer
inference-gateway-maintainer commentedon Jun 14, 2026
Claude finished @edenreich's task in 6m 53s —— View job •
docs/issue-226-20260614-2227• [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-226-20260614-2227?quick_pull=1&title=Issue%20%23226%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23226%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Documented
run-duration-msoutput andDurationfooter fieldAll edits are on
github-action.mdand verified against theinfer-actionsource (action.yml,src/post-results.ts,src/duration.ts).Todo
action.ymldescriptionrun-duration-msrow to the## OutputstableDurationto the### Result commentfooter field list (with format notes)**Duration:** ...line to the example footer code blocklint:md+format:check(both pass)What changed
run-duration-msrow, placed betweenpr-urlandfailed-tool-calls-countto match the order inaction.yml. Description matchesaction.ymlverbatim: "Wall-clock duration of the agent run in milliseconds (0 if unavailable)."Durationbullet describing the human-readable format (0s/1m 0s/1h 1m 1s), the—shown when unavailable, and the spawn-to-exit measurement window (excludes CLI install / Node setup). It cross-links therun-duration-msoutput.**Duration:** 1m 0sto the metadata line in the exact position the action renders it (after Exit Code, before View Job).All four acceptance criteria are met.
npm run format:checkandnpm run lint:mdboth pass.PR: #227 (Closes #226) - issue Status moved to QA.
| Branch
docs/issue-226-20260614-2227inference-gateway-releaser commentedon Jun 16, 2026
🎉 This issue has been resolved in version 0.6.111 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀