Skip to content

feat: add pagination support for CI job logs to prevent context window flooding - #97

Merged
zereight merged 1 commit into
zereight:mainfrom
huerlisi:feat/paginate-job-logs
Jun 12, 2025
Merged

feat: add pagination support for CI job logs to prevent context window flooding#97
zereight merged 1 commit into
zereight:mainfrom
huerlisi:feat/paginate-job-logs

Conversation

@huerlisi

Copy link
Copy Markdown
Contributor
  • Add optional limit and offset parameters to get_pipeline_job_output
  • Default limit is 1000 lines when pagination is used
  • Returns lines from the end of the log, with configurable offset
  • Includes truncation metadata showing what was skipped
  • Maintains backward compatibility (no parameters = full log)

This prevents large CI logs from overwhelming AI tooling context windows while still providing access to the most recent and relevant log output.

…w flooding

- Add optional `limit` and `offset` parameters to get_pipeline_job_output
- Default limit is 1000 lines when pagination is used
- Returns lines from the end of the log, with configurable offset
- Includes truncation metadata showing what was skipped
- Maintains backward compatibility (no parameters = full log)

This prevents large CI logs from overwhelming AI tooling context windows
while still providing access to the most recent and relevant log output.
@zereight
zereight merged commit aed6046 into zereight:main Jun 12, 2025
@zereight

Copy link
Copy Markdown
Owner

LGTM

@zereight

Copy link
Copy Markdown
Owner

iwakitakuma33 pushed a commit that referenced this pull request Aug 20, 2025
feat: add pagination support for CI job logs to prevent context window flooding
iwakitakuma33 pushed a commit that referenced this pull request Aug 20, 2025
feat: add pagination support for CI job logs to prevent context window flooding
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.

2 participants