403 Forbidden mid-session with no cause given; "continue" retry prompt (CLI 1.86.3, Windows)

Đang mở
#1,054 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
cli

Hướng nghiên cứu

Start by tracing where the CLI handles HTTP 403 responses and displays the retry prompt; the issue does not name a file or test. Compare this generic response with the model-specific errors mentioned in #930 and #736, then check whether the trace ID or session sequence narrows the cause. Done means the denial reason is surfaced clearly when available and the behavior is covered by a test.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Summary

Command Code stopped mid-session with a bare 403 Forbidden and the prompt Type "continue" to try again. The error gives no cause (auth, plan, quota, permissions), so there is no way to tell what to fix.

⚠ Error: 403 Forbidden

Type "continue" to try again. If the issue persists, contact support: https://commandcode.ai/discord
Trace ID: ccd031590f1d2d9d981332b79202560a

This is different from #930 and #736. Those return 403 "Authentication failed" for specific models. Here the message is a plain 403 Forbidden with no model-specific text.

Expected Behavior

The request succeeds, or the error states why access was denied.

Actual Behavior

A bare 403 Forbidden with only a trace ID.

Steps to reproduce the issue

Updated from the session transcript (see the comment below for the raw evidence). This is not a one-off: 18 occurrences in one session.

  1. Start a session with a long tool-heavy conversation.
  2. Either send a prompt, or complete a turn that runs tool calls and returns tool results.
  3. The request immediately following that point 403s.

The transcript shows the error arriving at two specific points in a turn's lifecycle and not others:

  • at the same timestamp as an outgoing user prompt, before any assistant turn is produced, or
  • within ~1s of an assistant turn finishing its tool calls and returning tool results.

Turns in between succeed, so it is intermittent rather than a dead credential or a plan limit. A full turn can complete normally and the very next request 403s.

Confirmed: continue clears it and preserves the full conversation context. That held on all 18.

Not confirmed: what the two landing points have in common at the request level. My earlier note here suggested a 60s shell timeout was the trigger; the transcript does not support that, and I have removed it as a lead.

Command Code Version

1.86.3

Operating System

Windows 10.0.26200 (win32)

Terminal/IDE

WezTerm

Shell

MSYS2 UCRT64 bash

Model

xiaomi/mimo-v2.6-pro

Additional context

First seen 2026-10-21T03:01:18Z (11:01 MYT), last seen 2026-10-21T06:18:40Z. 18 injected events across 3h17m, each with its own trace ID, so the trace ID appears to be per-request. Failures cluster: two arrived 17 seconds apart, and six arrived inside the final three minutes.

All 18 trace IDs are in the comment below.

Also seen once in the same session: Error: 400 Request failed at 2026-10-21T23:20:29Z, trace 58ad3b29bc7a, in exactly the same shape (injected into the transcript as a role: user message rather than raised as an assistant or tool error). Possibly the same upstream path returning a different status.

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
4.2k
Fork
377
Merge trung bình
1 ngày 17 phút
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CommandCodeAI/command-code

Tất cả issue của CommandCodeAI/command-code

Issue tương tự

Thêm issue về CLI

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.