Urgent.News

What's breaking now, across thousands of outlets.

Tech

Your Agent's Command Printed Nothing for 2 Minutes. stdout Wasn't a Terminal

Book: AI That Acts The series: AI in TypeScript — 5 books, from your first LLM call to agents in production — all five here My project: Hermes IDE | GitHub — an IDE for developers who ship with Claude Code and other AI coding tools Me: xgabriel.com | GitHub Command did not complete within its 120s timeout and was moved to the background . That is what Claude Code hands back after two minutes, the…

Claude Code's Bash tool executes commands in separate processes and streams their output to a file. When a command exceeds its two-minute timeout, it is moved to the background, and Claude Code returns a message with the task ID and the path of the output file. However, for block-buffered commands, the file may contain only the data that has been flushed so far, which could be empty.

This issue arises because the check for a terminal (isatty()) fails under an agent, causing the command to use block buffering instead of line buffering. As a result, lines are not displayed in real-time, but instead accumulate in memory until the buffer is full, the program calls fflush, or the process exits normally. To resolve this issue, Python developers can run their scripts with the -u flag or set PYTHONUNBUFFERED to 1, forcing the buffer to flush after each print statement.

Additionally, Claude Code's settings can be customized to include the env key, which sets variables for every session and its subprocesses.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Three color checkpoints for HEIC to JPEG, and why sips -g profile isn't one

Why do some HEIC-to-JPEG conversions come out washed out? The measurements I ran on 2026-11-06 pointed to three checks rather than to a library.

  • Three color checkpoints cause washed-out HEIC-to-JPEG conversions
  • ICC profile must be read, carried, or converted by pixels
  • Mixing formats leads to color discrepancies

Kubernetes DRA Extended Resources: GPUs Without Device Plugins

Originally published on kuryzhev.cloud A platform team has 200 training manifests that all say nvidia.com/gpu: 1 . They also want per-model GPU selection, MIG slices and shared devices, which the…

  • Kubernetes v1.37 introduces DRA extended resources for GPU support without device plugins.
  • DRA extended resources replace opaque integers with structured data for scheduler device allocation.

The Matrix Blue-Pill Syndrome

What if an artificial intelligence, while trying to protect us from danger, unintentionally helped bring that very danger about? It's been a while since I last wrote something. I went back to Italy to visit my daughters and my little grandson after four years, and when I returned to Georgia, I found myself emotionally drained and…

  • AI amplifying misinformation poses dangers
  • Feedback loops turn minor errors into distortions
  • AI-generated fabrications hard to distinguish

Pillow fades a P3 photo, sharp clips it: picking the JPEG default per target

The same Display P3 image went through Pillow 11.3 and sharp 0.34.5 with no color options set, and the two JPEGs went wrong in opposite directions. Pillow's copy came out washed out. sharp's copy was right for everyday colors and quietly flattened the most saturated ones. Neither library has a bug here.

  • Pillow and sharp produce different results on P3 images
  • Pillow retains P3 numbers but loses profile
  • Sharp converts to sRGB, dropping profile

More from Saturday 7 November →