Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: timer stops counting when waiting for user input (#1069) #1074

ClosedSaikrishna1876(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromrefs/pull/1074/headopened View on GitHub

Summary

This PR fixes issue #1069 where the "Working..." timer continued to count even while the agent was waiting for user input.

Changes:

  • UI Logic: Updated isWorking state in ChatView to exclude phases where the agent is waiting for user input.
  • Duration Calculation: Implemented formatTurnWorkElapsedExcludingUserInputWait helper to accurately calculate "Worked for" duration by subtracting intervals spent waiting for user feedback.
  • Stability: Increased timeouts for app-server and test suites to prevent flakiness during long-running operations.

Verification:

  • Video 1 (Agent stops counting when user is asked a question): /Users/saikrishnaambeti/Documents/Screenshots/Screen Screen Recording 2026-03-14 at 17.36.11.mov
  • Video 2 (Normal working of the timer when agent is working): /Users/saikrishnaambeti/Documents/Screenshots/Screen Screen Recording 2026-03-14 at 17.36.44.mov

This PR adheres to the @CONTRIBUTING.md guidelines:

  • Small, focused bug fix.
  • Tightly scoped maintenance.
  • Includes video evidence for timing/interaction changes.

Note

Fix timer to stop counting while waiting for user input

  • Adds deriveUserInputWaitIntervals and formatTurnWorkElapsedExcludingUserInputWait to session-logic.ts to compute and format working time with user-input wait periods subtracted.
  • Updates ChatView.tsx to pause the live timer when waiting for user input and to display elapsed time excluding wait durations.
  • Adds a 'waiting' row variant to MessagesTimeline.tsx that renders an animated 'Waiting for you' indicator when the agent is blocked on user input.
  • Behavioral Change: the working timer now pauses (rather than continues ticking) while the agent is waiting for user input, and the elapsed time shown in completion summaries excludes user-input wait durations.
Macroscope summarized a52aa83.
    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro

      Run ID: cbecc03b-0a1a-49eb-8a16-206bac55a55f

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests
      • Post copyable unit tests in a comment
      📝 Coding Plan
      • Generate coding plan for human review comments

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands and usage tips.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. 💡 Codex Review

      Here are some automated review suggestions for this pull request.

      Reviewed commit: 717d800847

      ℹ️ About Codex in GitHub

      Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

      • Open a pull request for review
      • Mark a draft as ready
      • Comment "@codex review".

      If Codex has suggestions, it will comment; otherwise it will react with 👍.

      Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

    4. 💡 Codex Review

      Here are some automated review suggestions for this pull request.

      Reviewed commit: e3a7e9f257

      ℹ️ About Codex in GitHub

      Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

      • Open a pull request for review
      • Mark a draft as ready
      • Comment "@codex review".

      If Codex has suggestions, it will comment; otherwise it will react with 👍.

      Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

    5. Closing as part of backlog cleanup: this PR is stale, currently conflicting with main, has no approval, and has not had active remediation for 30+ days. If the change is still relevant, please rebase onto current main and request reopening or submit a focused current diff. Thank you for the contribution.

    6. juliusmarminge closed this

Sign in to join this conversation.