From: Arun Isaac <arunisaac@systemreboot.net>
To: jgart <jgart@dismail.de>, kaagum@systemreboot.net
Subject: Re: [PATCH] Remove #:streaming? #t from HTTP requests to fix JSON parsing
Date: Wed, 22 Jul 2026 00:43:15 +0100 [thread overview]
Message-ID: <87mrvjhpt8.fsf@systemreboot.net> (raw)
In-Reply-To: <0e258653bf3bb4c5dbae700ffd6119153b523a91@dismail.de>
Hi jgart,
> Sorry about this. I used a DeepSeek model in the pi agent harness to
> work on the patch and description, and it looks like it hallucinated
> the technical details. The claim about gzip/streaming causing invalid
> JSON, and the openai-models workaround with accept-encoding: identity,
> don't seem to be real.
Dangers of vibe coding, best to avoid!
> Looking back at what I actually have, the closest thing to evidence is
> an error like this I took from an earlier screenshot when I captured
> the error:
>
> (error (code . -32603)
> (message . "Agent process ended before completing request: exited abnormally with code 1"))
>
> This looks like a crashed subprocess, not a JSON parsing issue.
This prompted me to improve our debugging situation. So, I implemented
detailed tracing.
https://klaus.systemreboot.net/kaagum/commit/7918c9d422962d8dec4fb9fa410a51daa6d6ebe7/
Now, if you run kaagum with the "--trace-file=/path/to/some/file"
option, we should be able to see what's going on.
If you are on Emacs agent shell too, here's my setup:
(setq agent-shell-kaagum-command
;; replace with path to your kaagum
"/gnu/store/lvxz7hdcwydhv7w8rnnhczl0xl6jlh7q-kaagum-0.1.0/bin/kaagum"
agent-shell-kaagum-parameters
'("--api-key-command=pass dev/openrouter.ai | awk '/^API Key:/ {print \$3}'"
"--model=anthropic/claude-sonnet-4.6"
"--trace-file=/tmp/logs"))
Regards,
Arun
next prev parent reply other threads:[~2026-07-21 23:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-20 14:21 jgart
2026-07-20 14:21 ` [PATCH] Remove #:streaming? #t from HTTP requests jgart
2026-07-20 23:55 ` [PATCH] Remove #:streaming? #t from HTTP requests to fix JSON parsing Arun Isaac
2026-07-21 8:51 ` jgart
2026-07-21 23:43 ` Arun Isaac [this message]
2026-07-22 3:31 ` jgart
2026-07-22 11:03 ` Arun Isaac
2026-08-14 11:52 ` jgart
2026-08-14 13:01 ` Arun Isaac
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mrvjhpt8.fsf@systemreboot.net \
--to=arunisaac@systemreboot.net \
--cc=jgart@dismail.de \
--cc=kaagum@systemreboot.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox