Skip to content

🔍 Inspector: Fix JSON null typed as "<nil>" in injection data - #137

Merged
jnnngs merged 1 commit into
mainfrom
claude/gifted-sagan-if8c7j
Nov 6, 2026
Merged

jnnngs merged 1 commit into
mainfrom
claude/gifted-sagan-if8c7j

Conversation

@jnnngs

@jnnngs jnnngs commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

📋 Findings

Functional (prioritized):

  1. High-ish: loadInjectionData (go3270Connect.go): a JSON null went through fmt.Sprint and became the literal text <nil>, typed onto the host screen. Fixed here.
  2. Low: nested objects/arrays in an injection entry become Go-formatted text (map[a:b]) and are typed as such, instead of being rejected.
  3. Low: injectDynamicValues replaces placeholders in random map order, so a value containing another placeholder substitutes non-deterministically.
  4. Low: workflow.Validate accepts negative Row/Column and negative FillString Length; only caught at run time.
  5. Design question: with AUTH_MODE=none, killProcessHandler can kill any PID on the machine.

UX: not audited in depth this pass.

🐛 Fixed

Finding 1. Null is now empty text via injectionValueText. Added TestLoadInjectionDataTreatsNullAsEmpty; it fails without the fix (got "<nil>") and passes with it. go vet and go test -short ./... pass; build ok.

⚠️ Risk/Follow-up

Anyone relying on null producing <nil> text is affected; implausible.

❓ Questions

  • Should nested objects/arrays in injection entries be an error (finding 2)?
  • Should the kill endpoint be limited to PIDs that have a metrics file (finding 5)?

📝 Noted, not fixed

Findings 2 to 5.



Generated by Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011MNNznBG5Dk7w3o7sPicPn
@jnnngs
jnnngs marked this pull request as ready for review November 6, 2026 19:35
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@jnnngs
jnnngs merged commit b2ea1e8 into main Nov 6, 2026
3 checks passed
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.

2 participants