Repository navigation
Omit the routine Stop link when the status line shows it - #96
Merged
Merged
Conversation
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.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.
The Stop hook omits the routine MemTree link when a recent
ccc statuslinerender acknowledged the current tree URL or the session’s stable URL. Without a matching render in the last 60 seconds, Stop prints the link when due. First-tree announcements, compression notices, warnings, MessageDisplay output and the exit link keep their existing behavior.Print and non-TTY launches disable the status-line file cache at startup. Interactive launches enable it only when auto-install is on and the resulting settings include ccc’s status line. Model calls still warm the background tree lookup and do zero heartbeat or
.urlfilesystem work. Desktop and direct MCP also run without the interactive status line.Known limitations
ccc statuslinethrough a filter that truncates or removes the URL. The renderer records its heartbeat before the filter runs, so Stop can omit a link the user never saw.Verification
The CLI regression test sends three model calls per launch. It checks for zero status-link file operations in non-TTY,
-p,-pc, auto-install-off and unconfigured sessions, and verifies that a configured interactive status line still receives the URL. A proxy regression test verifies that Stop skips an expired lookup when links are off and there is no active status line. Proxy tests cover the Stop fallback and suppression, link refresh, and trailer placement.Local
npm testruns withNO_COLOR=1andFORCE_COLOR=1each had 1,747 passes, 21 skips and the same ten baseline failures. Committeddist/matched a clean build byte for byte.Also accepted (Codex r5 P2s, both need non-default settings)
CCC_MEMTREE_LINK=offplusCCC_STATUSLINE_REFRESH=1and a custom status-line script that callsccc statusline, no automatic link is shown (the user turned the link off).CCC_MEMTREE_LINK=off, model calls can still trigger the periodic tree-link lookup.