claude-code - 💡(How to fix) Fix [FEATURE] Tell claude when a message was sent relative to its output [4 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#50731Fetched 2026-04-20 12:14:37
View on GitHub
Comments
4
Participants
3
Timeline
13
Reactions
0
Author
Timeline (top)
commented ×4labeled ×3mentioned ×3subscribed ×3
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

I sometimes send another message while claude is busy and when claude is done it gets my message but interprets it as being in response to the most recent output rather than the one before.

Proposed Solution

Record the time enter is pressed and the time output is added to the session - and let claude know the order of it relative to each other so it can accurately interpret the info and not get confused or misinterpret and do the wrong thing

Alternative Solutions

Interject to add the comment in real time without disrupting the current work - if this was possible I'm sure it would already be the behaviour.

Priority

Medium - Would be very helpful

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

No response

extent analysis

TL;DR

Implement a timestamp-based message ordering system to ensure Claude accurately interprets user input in relation to its output.

Guidance

  • Record the timestamp when the user presses enter to send a message and the timestamp when Claude adds output to the session.
  • Use these timestamps to determine the order of messages and outputs, allowing Claude to accurately interpret user input.
  • Consider implementing a queue or buffer to store user messages sent while Claude is busy, and process them in the correct order once Claude is ready.
  • Evaluate the feasibility of interjecting user comments in real-time without disrupting Claude's current work, although this may be a more complex solution.

Example

No code example is provided due to the lack of technical details in the issue.

Notes

The proposed solution relies on the ability to accurately record and compare timestamps, which may be affected by factors such as system clock accuracy and network latency. Additionally, the issue does not provide information on the current implementation of Claude's message handling, which may impact the feasibility of the proposed solution.

Recommendation

Apply workaround: Implement a timestamp-based message ordering system, as it is a more straightforward solution that can be implemented without requiring significant changes to the existing system.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING