Skip to content

Fix prompt echo and sanitize harness logging output - #1

Merged
glaforge merged 1 commit into
mainfrom
integrate_sdk_sample_findings
Sep 21, 2026
Merged

glaforge merged 1 commit into
mainfrom
integrate_sdk_sample_findings

Conversation

@glaforge

Copy link
Copy Markdown
Owner

Improvements & Bug Fixes

  • Eliminate prompt echo: Filter stepUpdate deltas to ignore SOURCE_USER and SOURCE_SYSTEM, preventing the user prompt from prepending to the model response text.
  • Route action rationale to thoughts: Direct TARGET_ENVIRONMENT action deltas (e.g. tool execution titles/rationales) to response.thoughts() instead of polluting response.text().
  • Wire reactive thoughts: Connect currentThoughtsPublisher.submit(...) to stream thought deltas.
  • Sanitize Go harness output: Consume Go process stdout and stderr line-by-line via SLF4J, silencing ERROR: logging before google.Init: from user terminals while preserving debug diagnostics.
  • Unit & Integration Tests: Added StepUpdateFilterTest and validated with live integration tests.
  • Documentation: Updated README.md, SKILL.md, and api-reference.md with harness logging configuration and Java 24+ --sun-misc-unsafe-memory-access=allow guidance.

- 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.
@glaforge
glaforge merged commit 2c7e1fc into main Sep 21, 2026
2 checks passed
@glaforge
glaforge deleted the integrate_sdk_sample_findings branch September 21, 2026 22:47
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.

1 participant