You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When agent hangs for some reason often with the working... state it doesn't allow the esc interruption, it prompts to press esc again, but doesn't stop the operation.
@thdxr The hangs are happening way more often (almost each session) maybe there's something wrong on my config?
I've started opencode with DEBUG logs and here's the observed behavior:
Normal tool usage:
INFO 2025-08-12T15:42:04 +253ms service=session session=ses_7611340e0ffeolz7a27xQFoEVb type=tool-input-delta part
INFO 2025-08-12T15:42:04 +254ms service=session session=ses_7611340e0ffeolz7a27xQFoEVb type=tool-input-delta part
INFO 2025-08-12T15:42:05 +223ms service=session session=ses_7611340e0ffeolz7a27xQFoEVb type=tool-input-delta part
INFO 2025-08-12T15:42:05 +154ms service=session session=ses_7611340e0ffeolz7a27xQFoEVb type=tool-input-delta part
INFO 2025-08-12T15:42:05 +175ms service=session session=ses_7611340e0ffeolz7a27xQFoEVb type=tool-input-delta part
INFO 2025-08-12T15:42:05 +120ms service=session session=ses_7611340e0ffeolz7a27xQFoEVb type=tool-input-delta part
INFO 2025-08-12T15:42:05 +184ms service=session session=ses_7611340e0ffeolz7a27xQFoEVb type=tool-input-delta part
INFO 2025-08-12T15:42:05 +117ms service=session session=ses_7611340e0ffeolz7a27xQFoEVb type=tool-input-delta part
INFO 2025-08-12T15:42:06 +372ms service=session session=ses_7611340e0ffeolz7a27xQFoEVb type=tool-input-delta part
INFO 2025-08-12T15:42:06 +173ms service=session session=ses_7611340e0ffeolz7a27xQFoEVb type=tool-input-delta part
INFO 2025-08-12T15:42:06 +3ms service=session session=ses_7611340e0ffeolz7a27xQFoEVb type=tool-input-end part
INFO 2025-08-12T15:42:06 +0ms service=session session=ses_7611340e0ffeolz7a27xQFoEVb id=ses_7610dd9b7ffeB059LexQHE1BgB version=0.4.29 parentID=ses_76114d0b1ffeqRjHo0KS0qGxOi title=Child session - 2025-08-12T15:42:06.408Z time={"created":1755013326408,"updated":1755013326408} created
INFO 2025-08-12T15:42:06 +1ms service=session session=ses_7611340e0ffeolz7a27xQFoEVb type=tool-call part
INFO 2025-08-12T15:42:06 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:42:06 +0ms service=bus type=session.updated publishing
INFO 2025-08-12T15:42:06 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:42:06 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:42:06 +1ms service=tui message=msg_89eeb2f93001ET20D8kLt14I1E part=prt_89ef1c8ec001Kfe58IMLcA2iSo message part updated
INFO 2025-08-12T15:42:06 +1ms service=bus type=message.part.updated subscribing
INFO 2025-08-12T15:42:06 +0ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB chatting
INFO 2025-08-12T15:42:06 +1ms service=bus type=storage.write publishing
INFO 2025-08-12T15:42:06 +0ms service=bus type=message.updated publishing
INFO 2025-08-12T15:42:06 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:42:06 +0ms service=bus type=message.part.updated publishing
INFO 2025-08-12T15:42:06 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:42:06 +0ms service=bus type=session.updated publishing
INFO 2025-08-12T15:42:06 +0ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB sessionID=ses_7610dd9b7ffeB059LexQHE1BgB locking
DEBUG 2025-08-12T15:42:06 +1ms service=tui message=msg_89ef2264b001FmD437gGelo9cf part=prt_89ef2264b0027OqVmqVSRo6Xw4 message part updated
DEBUG 2025-08-12T15:42:06 +0ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:42:06 +0ms service=tui timeTakenMs=1 messages.renderView
INFO 2025-08-12T15:42:06 +13ms service=bus type=storage.write publishing
INFO 2025-08-12T15:42:06 +0ms service=bus type=message.updated publishing
INFO 2025-08-12T15:42:28 +22332ms service=tui offset=3 x=121 y=37 mouse
INFO 2025-08-12T15:42:28 +1ms service=tui end=-1,-1 start=121,40 mouse selection
DEBUG 2025-08-12T15:42:28 +4ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:42:28 +0ms service=tui timeTakenMs=2 messages.renderView
Here it hang at 15:42, I've waited some minutes and no new logline, I've tried to esc to cancel, here's the output:
INFO 2025-08-12T15:46:39 +251044ms service=server method=POST path=/session/ses_76114d0b1ffeqRjHo0KS0qGxOi/abort request
INFO 2025-08-12T15:46:39 +0ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB sessionID=ses_76114d0b1ffeqRjHo0KS0qGxOi aborting
INFO 2025-08-12T15:46:39 +0ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB sessionID=ses_7610dd9b7ffeB059LexQHE1BgB aborting
INFO 2025-08-12T15:46:39 +0ms service=server duration=0 response
INFO 2025-08-12T15:46:40 +289ms service=server method=POST path=/session/ses_76114d0b1ffeqRjHo0KS0qGxOi/abort request
INFO 2025-08-12T15:46:40 +1ms service=server duration=0 response
INFO 2025-08-12T15:46:53 +13171ms service=server method=POST path=/session/ses_76114d0b1ffeqRjHo0KS0qGxOi/abort request
INFO 2025-08-12T15:46:53 +0ms service=server duration=0 response
One workaround (not really) is to /compact it works some times, like here:
INFO 2025-08-12T15:50:14 +201412ms service=server method=POST path=/session/ses_76114d0b1ffeqRjHo0KS0qGxOi/summarize request
INFO 2025-08-12T15:50:14 +0ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB sessionID=ses_76114d0b1ffeqRjHo0KS0qGxOi locking
INFO 2025-08-12T15:50:14 +12ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:14 +0ms service=bus type=message.updated publishing
INFO 2025-08-12T15:50:14 +6ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=start part
DEBUG 2025-08-12T15:50:14 +6ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:14 +0ms service=tui timeTakenMs=2 messages.renderView
INFO 2025-08-12T15:50:16 +2073ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=start-step part
INFO 2025-08-12T15:50:16 +1ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:16 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:16 +1ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1c9001QmFlC5p1O8kEom message part updated
DEBUG 2025-08-12T15:50:16 +3ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:16 +0ms service=tui timeTakenMs=2 messages.renderView
INFO 2025-08-12T15:50:16 +15ms service=snapshot hash=c57e7b1c6fd44803c2cfa63dbe5438ece3004296
cwd=/home/arthur/dots git=/home/arthur/.local/share/opencode/project/home-arthur-dots/snapshots tracking
INFO 2025-08-12T15:50:16 +0ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-start part
INFO 2025-08-12T15:50:16 +0ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:16 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:16 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:16 +1ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:16 +3ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:16 +0ms service=tui timeTakenMs=2 messages.renderView
INFO 2025-08-12T15:50:16 +111ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:16 +1ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:16 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:16 +0ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:16 +5ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:16 +0ms service=tui timeTakenMs=2 messages.renderView
INFO 2025-08-12T15:50:17 +155ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:17 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:17 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:17 +0ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:17 +5ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:17 +0ms service=tui timeTakenMs=2 messages.renderView
INFO 2025-08-12T15:50:17 +176ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:17 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:17 +1ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:17 +0ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:17 +2ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:17 +0ms service=tui timeTakenMs=1 messages.renderView
INFO 2025-08-12T15:50:17 +117ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:17 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:17 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:17 +1ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:17 +3ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:17 +0ms service=tui timeTakenMs=3 messages.renderView
INFO 2025-08-12T15:50:17 +146ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:17 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:17 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:17 +1ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:17 +2ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:17 +1ms service=tui timeTakenMs=2 messages.renderView
INFO 2025-08-12T15:50:17 +164ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:17 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:17 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:17 +1ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:17 +1ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:17 +0ms service=tui timeTakenMs=1 messages.renderView
INFO 2025-08-12T15:50:17 +147ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:17 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:17 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:17 +1ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:17 +2ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:17 +0ms service=tui timeTakenMs=2 messages.renderView
INFO 2025-08-12T15:50:18 +186ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:18 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:18 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:18 +1ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:18 +4ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:18 +0ms service=tui timeTakenMs=2 messages.renderView
INFO 2025-08-12T15:50:18 +110ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:18 +1ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:18 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:18 +1ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:18 +3ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:18 +0ms service=tui timeTakenMs=3 messages.renderView
INFO 2025-08-12T15:50:18 +129ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:18 +1ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:18 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:18 +0ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:18 +3ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:18 +1ms service=tui timeTakenMs=3 messages.renderView
INFO 2025-08-12T15:50:18 +151ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:18 +1ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:18 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:18 +0ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:18 +3ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:18 +0ms service=tui timeTakenMs=2 messages.renderView
INFO 2025-08-12T15:50:18 +244ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:18 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:18 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:18 +0ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:18 +2ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:18 +0ms service=tui timeTakenMs=1 messages.renderView
INFO 2025-08-12T15:50:18 +166ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:18 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:18 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:18 +1ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:18 +1ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:18 +1ms service=tui timeTakenMs=1 messages.renderView
INFO 2025-08-12T15:50:18 +138ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:18 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:18 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:18 +1ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:18 +3ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:18 +0ms service=tui timeTakenMs=2 messages.renderView
INFO 2025-08-12T15:50:19 +123ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:19 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:19 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:19 +1ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:19 +2ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:19 +1ms service=tui timeTakenMs=2 messages.renderView
INFO 2025-08-12T15:50:19 +175ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:19 +1ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:19 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:19 +0ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:19 +3ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:19 +0ms service=tui timeTakenMs=2 messages.renderView
INFO 2025-08-12T15:50:19 +138ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:19 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:19 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:19 +1ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:19 +3ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:19 +0ms service=tui timeTakenMs=3 messages.renderView
INFO 2025-08-12T15:50:19 +229ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:19 +1ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:19 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:19 +0ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:19 +2ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:19 +0ms service=tui timeTakenMs=1 messages.renderView
INFO 2025-08-12T15:50:19 +126ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:19 +1ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:19 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:19 +0ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:19 +3ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:19 +0ms service=tui timeTakenMs=2 messages.renderView
INFO 2025-08-12T15:50:19 +131ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:19 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:19 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:19 +1ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:19 +3ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:19 +0ms service=tui timeTakenMs=1 messages.renderView
INFO 2025-08-12T15:50:20 +195ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:20 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:20 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:20 +1ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:20 +2ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:20 +0ms service=tui timeTakenMs=1 messages.renderView
INFO 2025-08-12T15:50:20 +205ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:20 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:20 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:20 +1ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:20 +4ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:20 +0ms service=tui timeTakenMs=4 messages.renderView
INFO 2025-08-12T15:50:20 +165ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:20 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:20 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:20 +1ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:20 +3ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:20 +0ms service=tui timeTakenMs=3 messages.renderView
INFO 2025-08-12T15:50:20 +100ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:20 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:20 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:20 +0ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:20 +4ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:20 +0ms service=tui timeTakenMs=3 messages.renderView
INFO 2025-08-12T15:50:20 +125ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:20 +1ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:20 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:20 +0ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:20 +4ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:20 +0ms service=tui timeTakenMs=3 messages.renderView
INFO 2025-08-12T15:50:20 +133ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:20 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:20 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:20 +1ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:20 +5ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:20 +1ms service=tui timeTakenMs=5 messages.renderView
INFO 2025-08-12T15:50:21 +145ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:21 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:21 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:21 +1ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:21 +3ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:21 +0ms service=tui timeTakenMs=3 messages.renderView
INFO 2025-08-12T15:50:21 +117ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:21 +0ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:21 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:21 +1ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:21 +3ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:21 +1ms service=tui timeTakenMs=2 messages.renderView
INFO 2025-08-12T15:50:21 +147ms service=session session=ses_7610dd9b7ffeB059LexQHE1BgB type=text-delta part
INFO 2025-08-12T15:50:21 +1ms service=bus type=storage.write publishing
INFO 2025-08-12T15:50:21 +0ms service=bus type=message.part.updated publishing
DEBUG 2025-08-12T15:50:21 +1ms service=tui message=msg_89ef999a4001ofghH3NPRW7TLe part=prt_89ef9a1dd001m7N3ZQJ0JG1qhK message part updated
DEBUG 2025-08-12T15:50:21 +3ms service=tui timeTakenMs=0 tool=task chat.renderToolDetails
DEBUG 2025-08-12T15:50:21 +0ms service=tui timeTakenMs=3 messages.renderView
Appreciate the tool a lot, as I'm using it daily these hangs are really a huge blocker right now, don't know if this is observed accross the board or if it's related to my setup specifically.
I've tested this on Osx, Archlinux, windows and on the three different systems I get the same behavior unfortunately.
I've used /compact as a workaround to unstuck that, but the usual state is that hang on agent calls ( Usually I observe the hang happening after I get the first response from the agent, for example:
I create a plan using the plan primary agent
I switch to my implement primary agent and ask to implement that plan, that hangs pretty often
)
I also had this hang when registering a local mcp server, which stopped when I removed this from my config. The hang I got was odd - in the prompt entry it was asking for my github username, and key registration was inconsistent (not sure if this is unrelated though)
@rekram1-node But with this configuration the oauth flow works and mcp server communication works too. But I don't understand why it's stuck after the first prompt. I think it's maybe because the "worker" is still connected to the mcp server ?
@Orkin I can't replicate your issue, if added all 3 mcps and when using mcp-remote I had no issues besides slowness to start up (had to go through each flow 1 by 1)
I had this when added Better Auth MCP, and agent tried to fetch new docs from the MCP. When it was fetching the data, it hanged for a moment. ESC was not working.
To reproduce, you may need to somehow slow down the internet connection in the system (not sure if possible). If you have like 3G or 2G connection, all request will be really slow, and you will see that interruption of the request is not working.
Activity
arthur404dev commentedon Aug 10, 2025
Also forgot to mention that hangs are way more often, on all different models (from different providers)
Tested with
Can't give more detailed state because it gets stuck with the working... state on the left side
jacquesbh commentedon Aug 10, 2025
I have those hangs as well.
I had them for OpenAI and Google Gemini first, but now Claude too.
I've removed all specific configuration, all shared directories… Nothing changes.
Here are the logs:
arthur404dev commentedon Aug 12, 2025
@thdxr The hangs are happening way more often (almost each session) maybe there's something wrong on my config?
I've started opencode with DEBUG logs and here's the observed behavior:
Normal tool usage:
Here it hang at 15:42, I've waited some minutes and no new logline, I've tried to esc to cancel, here's the output:
One workaround (not really) is to
/compactit works some times, like here:Appreciate the tool a lot, as I'm using it daily these hangs are really a huge blocker right now, don't know if this is observed accross the board or if it's related to my setup specifically.
I've tested this on Osx, Archlinux, windows and on the three different systems I get the same behavior unfortunately.
Different models aswell
thdxr commentedon Aug 12, 2025
is this specifically with /init or /compat ? i haven't been able to reproduce this. do you have any specific config?
arthur404dev commentedon Aug 12, 2025
@thdxr The hangs happen randomly on normal usage.
My configuration file is:
And I have the following agents setup:
I've used
/compactas a workaround to unstuck that, but the usual state is that hang on agent calls ( Usually I observe the hang happening after I get the first response from the agent, for example:)
arthur404dev commentedon Aug 13, 2025
@thdxr can confirm, hangs happen when there's a mcp setting on opencode.json, I've removed that yesterday and hangs are not happening anymore.
CameronMackenzie99 commentedon Aug 13, 2025
I also had this hang when registering a local mcp server, which stopped when I removed this from my config. The hang I got was odd - in the prompt entry it was asking for my github username, and key registration was inconsistent (not sure if this is unrelated though)
Orkin commentedon Aug 26, 2025
@thdxr I have the same issue as @arthur404dev . When I provide a local mcp using npx I got stuck in working mode on second prompt (first one works)
rekram1-node commentedon Aug 26, 2025
@Orkin what mcp server are u using?
Orkin commentedon Aug 26, 2025
@rekram1-node Sentry, Linear and notion but I have the problem with one of them. You can see my configuration below
rekram1-node commentedon Aug 26, 2025
ah yeah we need to add better support for the oauth flow support for mcp, that is coming soon :/ @Orkin
that's why it hangs
Orkin commentedon Aug 26, 2025
@rekram1-node But with this configuration the oauth flow works and mcp server communication works too. But I don't understand why it's stuck after the first prompt. I think it's maybe because the "worker" is still connected to the mcp server ?
rekram1-node commentedon Aug 26, 2025
I will try to replicate and get back to ya
Orkin commentedon Sep 14, 2025
@rekram1-node do you have some news on this issue ?
rekram1-node commentedon Sep 14, 2025
@Orkin I can't replicate your issue, if added all 3 mcps and when using mcp-remote I had no issues besides slowness to start up (had to go through each flow 1 by 1)
jcubic commentedon Nov 16, 2025
I had this when added Better Auth MCP, and agent tried to fetch new docs from the MCP. When it was fetching the data, it hanged for a moment. ESC was not working.
To reproduce, you may need to somehow slow down the internet connection in the system (not sure if possible). If you have like 3G or 2G connection, all request will be really slow, and you will see that interruption of the request is not working.