Fix prompt echo and sanitize harness logging output - #1
Merged
Merged
Conversation
- Filter stepUpdate deltas by source (ignoring SOURCE_USER and SOURCE_SYSTEM deltas) to prevent prompt repetition in response text. - Route TARGET_ENVIRONMENT action deltas to thoughts rather than user-facing response text. - Connect currentThoughtsPublisher to reactively stream thinking deltas. - Change ProcessBuilder error redirection to PIPE and consume stdout/stderr line-by-line via SLF4J, silencing raw Go glog logs from the console. - Add StepUpdateFilterTest covering source and target delta filtering. - Update README.md, SKILL.md, and api-reference.md with harness logging configuration and Java 24+ sun.misc.Unsafe JVM options.
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.
Improvements & Bug Fixes
stepUpdatedeltas to ignoreSOURCE_USERandSOURCE_SYSTEM, preventing the user prompt from prepending to the model response text.TARGET_ENVIRONMENTaction deltas (e.g. tool execution titles/rationales) toresponse.thoughts()instead of pollutingresponse.text().currentThoughtsPublisher.submit(...)to stream thought deltas.ERROR: logging before google.Init:from user terminals while preserving debug diagnostics.StepUpdateFilterTestand validated with live integration tests.README.md,SKILL.md, andapi-reference.mdwith harness logging configuration and Java 24+--sun-misc-unsafe-memory-access=allowguidance.