generated from nhcarrigan/template
feat: handle idle-return prompt after 75+ minutes of inactivity (v2.1.84) #255
Closed
opened 2026-04-13 09:11:36 -07:00 by hikari
·
1 comment
No Branch/Tag Specified
main
dependencies/update--tauri-apps-plugin-fs
dependencies/update--tauri-apps-plugin-dialog
dependencies/update--codemirror-language
dependencies/update--codemirror-lang-yaml
dependencies/update-tailwindcss
dependencies/update--tailwindcss-vite
dependencies/update--vitest-coverage-v8
dependencies/update--codemirror-commands
dependencies/update--codemirror-state
dependencies/update-prettier-plugin-svelte
dependencies/update--codemirror-lang-javascript
dependencies/update-lucide-svelte
dependencies/update-marked
dependencies/update-typescript-eslint
dependencies/update-svelte
dependencies/update-eslint-plugin-svelte
dependencies/update--codemirror-view
dependencies/update-eslint
dependencies/update--eslint-js
dependencies/update--tauri-apps-cli
dependencies/update--sveltejs-kit
dependencies/update--tauri-apps-plugin-shell
dependencies/update--tauri-apps-api
dependencies/update-jsdom
dependencies/update-globals
dependencies/update-svelte-check
feat/providers
fix/paths
dependencies/update-vitest
dependencies/update-vite
dependencies/update-typescript
dependencies/update-prettier
dependencies/update--sveltejs-vite-plugin-svelte
dependencies/update--sveltejs-adapter-static
dependencies/update-codemirror
dependencies/update--tauri-apps-plugin-store
dependencies/update--tauri-apps-plugin-os
dependencies/update--tauri-apps-plugin-opener
dependencies/update--tauri-apps-plugin-notification
v1.14.0
v1.13.0
v1.12.0
v1.11.1
v1.11.0
v1.10.0
v1.9.0
v1.8.1
v1.8.0
v1.7.0
v1.6.0
v1.5.1
v1.5.0
v1.4.0
v1.3.0
v1.2.0
v1.1.1
v1.1.0
v1.0.0
v0.3.0
v0.2.0
v0.1.0
Labels
Clear labels
aspect
code
Concerns the software code in the repository
aspect
dx
Concerns developers' experience with the codebase
aspect
interface
Concerns end-users' experience with the software
aspect
text
Concerns the documentation material in the repository
contribute
good first issue
A great opportunity for a team member to learn a new codebase
contribute
help wanted
Open for anyone on our team to grab.
contribute
staff only
Restricted to our executive leadership.
goal
addition
Addition of new feature
goal
fix
Bug fix
goal
improvement
Improvement to an existing feature
points
1
Very simple issue requiring minimal effort and complexity.
points
13
Extremely complex issue representing major undertakings. Should be broken down into smaller pieces.
points
2
Simple issue that requires a bit more thought or investigation.
points
3
Moderate complexity issue requiring more substantial work.
points
5
Complex issue requiring significant effort and expertise.
points
8
Very complex issue requiring extensive work and deep expertise.
priority
critical
1
Must be fixed ASAP
priority
high
2
Stalls work on the project or its dependents
priority
low
4
Low priority and doesn't need to be rushed
priority
medium
3
Not blocking but should be fixed soon
priority
none
5
No priority, should only be performed when a developer is available
status
awaiting triage
Has not been triaged & therefore, not ready for work
status
blocked
Blocked and therefore not ready for work
status
discarded
Will not be worked on
status
discontinued
Not suitable for work as repo is in maintenance
status
label work required
Needs proper labelling before it can be worked on
status
ready for dev
Ready for work
status
ticket work required
Needs more details before it can be worked on
talk
discussion
Open for discussions and feedback
talk
question
Can be resolved with an answer
time
1 day
Approximately one full day of development work.
time
1-2 weeks
One to two weeks of focused development effort.
time
2-3 days
Two to three days of development effort.
time
4-5 days
Approximately one week of development work.
time
<1 day
Less than one day of focused work. Quick fixes or simple tasks.
time
>2 weeks
More than two weeks of development work. Must be broken down into smaller pieces.
No Label
Milestone
No items
No Milestone
Assignees
gurkirat
hanna (Hanna Rose)
hikari (Hikari)
minori (Minori)
naomi (Naomi Carrigan)
rain
teklu
tim
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: nhcarrigan/hikari-desktop#255
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Claude Code v2.1.84 added an idle-return prompt that fires after 75+ minutes of session inactivity. This appears as an interactive prompt in the CLI asking the user to confirm they want to continue.
In
--output-format stream-jsonmode (which we use), this likely surfaces as either:systemmessage with a specific subtypeuserprompt request requiring inputThe exact stream-json representation needs investigation.
Why This Matters
If unhandled, this idle prompt could cause the session to stall silently in Hikari Desktop — the user may not realise Claude Code is waiting for confirmation, and the character would be stuck in an active state indefinitely.
Ideally we should:
Permissioncharacter state (confused shrug) since user input is requiredTasks
src-tauri/src/types.rsif it's a new message typesrc-tauri/src/wsl_bridge.rs— surface to UI and/or triggerPermissionstateReferences
src-tauri/src/types.rssrc-tauri/src/wsl_bridge.rsElicitationEventhandling (similar pattern)✨ This issue was created with help from Hikari~ 🌸
Investigation Results
After digging into the installed Claude Code CLI source (
cli.js), the idle-return prompt after 75+ minutes appears to be a TUI-only feature — it uses the terminal's interactive prompt system, not the hook/stream-json pipeline.When running in
--output-format stream-jsonmode (which is how Hikari Desktop communicates with Claude Code), interactive TUI prompts are suppressed entirely. There is no corresponding hook event type (no[IdleReturn Hook]or similar), and no stream-json message type for this event.Conclusion
No action required for Hikari Desktop. The idle-return prompt does not surface in our communication channel.
If this assumption ever proves incorrect (e.g. a future CLI version adds an
IdleReturnhook), we can revisit. Closing as won't fix / not applicable.✨ This comment was added by Hikari~ 🌸