Repository navigation
fix(cli): Print the elapsed line only on a terminal - #5554
Merged
Merged
Conversation
devops-cli-service
Bot
force-pushed
the
fix/5448-print-the-elapsed-line-only-when
branch
2 times, most recently
from
November 13, 2026 21:08
e95391b to
921cbb9
Compare
Contributor
Author
|
The steps of the job:
|
6 tasks
dan-petty
force-pushed
the
fix/5448-print-the-elapsed-line-only-when
branch
from
November 13, 2026 22:00
50427b1 to
01de161
Compare
dan-petty
enabled auto-merge (squash)
November 13, 2026 22:04
dan-petty
pushed a commit
that referenced
this pull request
Nov 13, 2026
🤖 I have created a release *beep* *boop* --- ## [0.133.0](v0.132.1...v0.133.0) (2026-11-13) ### Features * **roadmap:** run each stage item in its own Job ([#5559](#5559)) ([b771fc4](b771fc4)) ### Bug Fixes * **cli:** Print the elapsed line only on a terminal ([#5554](#5554)) ([5dc5882](5dc5882)) * **roadmap:** only blocker and major review findings block a plan ([#5557](#5557)) ([75d45b5](75d45b5)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Each
devopscommand writes anElapsed:line to stderr at exit, also when stderr is a pipe, assrc/devops_cli/main.py:32:print_muted(f"Elapsed: {format_duration(elapsed)}", to_stderr=True)shows. An agent tool captures stdout and stderr together, so the line enters the agent context on almost every call, and a2>&1JSON pipe fails withJSONDecodeError: Extra data. #5448 keeps the line for a person at a terminal and removes it from every other stderr.The hook is now public as
print_elapsed, so two in-process tests can import it. The changed-line coverage gate does not measure the child-process tests. The archived design.md records this decision.Closes #5448
Change:
openspec/changes/archive/2026-11-13-5448-print-the-elapsed-line-only-when/