Urgent.News

What's breaking now, across thousands of outlets.

AI

Claude Code mod button calling $.prompt.submit doesn't work the first time (where to call it)

If you call $.prompt.submit inside a mod button's onPress or inside a command, Claude sometimes doesn't start. In the versions I tested, a $.prompt.submit called inside the press event was thrown away when the event ended, with no error . Have the button only store what to send in a variable, and send it from a clock created in session.start . That works reliably. Versions checked: Claude Code…

If you try to call $.prompt.submit directly from a mod button's onPress event or a command, Claude might not start a turn. This issue affects Claudia Code versions 2.1.286 to 2.1.288 (October 2026). Instead of calling it immediately, store the text in a variable and send it from a clock created in session.start. This approach works reliably.

The official documentation mentions that $.prompt.submit waits until the session is idle, then starts a new turn, but doesn't explicitly state that a call inside an event might be discarded. Based on the author's observations, moving the call to a clock ensures it works every time. The author recommends putting the call to send the text inside a clock created in session.start, and keeping only one clock throughout the mod to avoid conflicts.

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 AI

🌿 Nature Buddy AI

🌿 Nature Buddy AI: Your AI Companion for Getting Outside What I Built Nature Buddy AI is an open-source AI-powered nature companion built for the Hacktoberfest Week 1 “Touch Grass” challenge.

Explora — A Nature Journal Powered by Local AI

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass What I Built What if AI could help us spend less time staring at screens and more time noticing the world around…

  • Explora is a nature-walk journal powered by local AI model Gemma
  • Users can review AI suggestions, correct them, or leave discoveries unidentified
  • Project emphasizes curiosity, personal connection, and privacy-conscious image handling

TerraAI: Touch Grass — An Open-Source AI That Turns Screen Time into Green Time

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass What I Built Demo Code How I Built It Why Does Open Innovation Matter? My Agent Session Prize Categories This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass What I Built 🌿 TerraAI — Touch Grass: Less Screen Time…

  • TerraAI encourages outdoor activities to reduce screen time
  • Open-source AI integrated using Transformers.js and Hugging Face model
  • Project hosted on GitHub Pages with fallback recommendations

More from Sunday 11 October →