Repository navigation
cellstore: background seal notices go to the log, not through the chat frame - #2030
Merged
Merged
Conversation
…derr The older-chat copier runs inside the full-screen surface and seals with an engine that has no notice route. Each file it kept out for a secret (fake keys in test fixtures) was written straight to os.Stderr and tore through the frame. The standard logger is parked in chat.log for the surface's lifetime, so the fallback now writes there; outside the surface the logger is still stderr.
Member
Author
|
Spark gate at b96cccc (base dev 66fa77e):
|
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.
Summary
Background seals inside the full-screen chat printed raw rows through the frame. The older-chat copier (
runOlderChats, started inrunSurface) seals withcellstore.EngineFor, whose Guard has no notice route, so every file kept out for a secret went straight toos.Stderr. A project whose tests carry fake keys (sk-live-…in Swift fixtures) printed one row per file across the Memory page.runSurface withSurfaceLogger # log -> chat.log while the surface owns the terminal runOlderChats copyOlderChat EngineFor(...).Seal Guard.Look announce -> notify - fmt.Fprintln(os.Stderr, "codeaf: "+line) # raw row through the frame + log.Printf("seal guard: %s", line) # chat.log under the surface, stderr outside itEngines with a route (
WithNotices, the chat seat) are unchanged.Evidence
codeaf: Tests/CodeAFCoreTests/BrowseTests.swift looks like it holds a secret (api-key-sk), so it is kept out of the saved history; …overwrite the frame.After: the same line lands in the profile's
chat.log; nothing is written to the terminal.TestAGuardWithNoRouteLogsItsNoticeAndWritesNothingToStderr: a zero-route Guard screens a fixture with a fake key; stderr stays empty, the log names the file and never the key.Merge Danger
Door: two-way
One fallback line and its comments; revert restores the old behavior.
Blast Radius: small
Command-line paths that seal with no route now print the notice through the standard logger (timestamp prefix,
seal guard:instead ofcodeaf:) rather than raw stderr. No test or script matched the old prefix.🤖 Generated with Claude Code
https://claude.ai/code/session_01TBxwSLogRn4kB7hneaeJzH