Skip to content

fix(core): strict_schema error message, REPL whitespace input, debug docstrings - #4600

Merged
seratch merged 1 commit into
openai:mainfrom
simpleqt:fix-error-message-repl-and-docstring
Aug 23, 2026
Merged

fix(core): strict_schema error message, REPL whitespace input, debug docstrings#4600
seratch merged 1 commit into
openai:mainfrom
simpleqt:fix-error-message-repl-and-docstring

Conversation

@simpleqt

Copy link
Copy Markdown
Contributor

Summary

Three small, independent fixes:

  1. strict_schema.py: two ValueError messages say "Expected $ref: … to resolved to a dictionary" — fixed to "to resolve to". No tests assert on this text.
  2. repl.py: the exit check strips input but the emptiness check doesn't, so a whitespace-only line was appended as a blank user message and sent to the model. tests/test_repl.py::test_run_demo_loop_skips_empty_input only feeds "", so intent is to skip blank lines generally. Now skips whitespace-only input.
  3. _debug.py: DONT_LOG_MODEL_DATA / DONT_LOG_TOOL_DATA docstrings said "Set this flag to enable logging them" — inverted. These flags are opt-out and default to True; logging is enabled by setting the env var to 0/false before startup, which is what docs/config.md ("Sensitive data in logs") documents.

…g docstrings

- strict_schema: 'Expected ... to resolved to a dictionary' -> 'to resolve'
  (two occurrences)
- repl: skip whitespace-only input; only truly empty strings were
  skipped, so a line of spaces was sent to the model as a blank message
- _debug: DONT_LOG_MODEL_DATA/DONT_LOG_TOOL_DATA docstrings said 'Set
  this flag to enable logging' — the flags are opt-out and default to
  True; logging is enabled by setting the env var to 0/false, as
  docs/config.md documents
Copilot AI lite review requested due to automatic review settings August 23, 2026 10:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@seratch seratch added this to the 0.22.x milestone Aug 23, 2026
@seratch seratch changed the title fix small defects: strict_schema error message, REPL whitespace input, debug docstrings fix(core): strict_schema error message, REPL whitespace input, debug docstrings Aug 23, 2026
@seratch
seratch merged commit f81c322 into openai:main Aug 23, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants