Skip to content

[Dots] Network/proxy mismatch between manual cloud terminal and agent execution blocks user handoff #53094

Open

Description

@discko

Problem

On the same dot cloud computer, the user-operated desktop terminal and the agent's command-execution environment have different network behavior and proxy configuration. Requests from the manual terminal fail, while HTTP probes to the same host and endpoint through agent execution receive responses.

This blocks the user handoff workflow.

Observed differences

  1. The manual terminal has no HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, NO_PROXY or corresponding lowercase environment variables.
  2. Agent execution has proxy variables pointing to loopback addresses. The assigned ports change across separate execution contexts.
  3. A manually launched CLI fails on an HTTPS request with connect: connection refused, exiting with code 3.
  4. Agent execution receives HTTP 302 for a HEAD request to the same host and HTTP 400 with a missing-parameter response for an unauthenticated empty POST to the same endpoint.

Practical impact

In my experience, dots' safety review is overly conservative: many commands and scripts I explicitly ask it to execute still cannot be run directly by dots, so I am asked to perform them manually.

However, the cloud terminal used for that handoff lacks the proxy configuration available in agent execution, and its network requests fail. This leaves both the automatic-execution route and the manual-handoff route unable to complete the task.

Copying a proxy port from an earlier execution is not a usable stable configuration when those ports change between execution contexts.

Earlier environment changes and file loss

This dot's cloud environment has previously changed several times, with substantial file loss and regressions to older file contents. The current networking/proxy configuration problem may be related to files lost after the previous environment reset. Please also investigate the environment-restoration process.

My earlier file-loss and rollback observations were submitted here:
#49682 (comment)

Expected behavior

Please provide a working, supported network configuration for the manual cloud terminal so users can complete steps handed over to them.

If the two execution entry points have different network permissions or configuration requirements, make those differences clear at handoff and provide an actionable path to complete the operation.

Concrete reproduction example and evidence

The following CLI authorization attempt is one example of the execution-context mismatch described above.

  • ChatGPT dots, hosted cloud computer
  • User accessing the conversation through iOS
  • CLI used in this example: official Feishu lark-cli 1.0.97
  • Observed October 11, 2026; all times below are UTC
  • The affected terminal is on the cloud computer, not my personal computer

Manual cloud terminal

Running a script that invokes the official CLI's personal authorization flow repeatedly fails at the device-authorization request, before an authorization link is obtained:

device authorization failed: Post "https://accounts.feishu.cn/oauth/v1/device_authorization": dial tcp 98.96.213.145:443: connect: connection refused

The CLI exits with code 3.

A diagnostic run at 10:23:18–10:23:19 UTC recorded:

  • Local preflight completed and the CLI process started
  • HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, NO_PROXY and their lowercase variants were all absent
  • LARK_CLI_NO_PROXY, LARKSUITE_CLI_PROXY_ENABLE, LARKSUITE_CLI_PROXY_ADDRESS and LARKSUITE_CLI_PROXY_CA_PATH were absent
  • Failure stage: device authorization
  • Error category: connection_refused
  • Exit code: 3

Agent command-execution tool

The ordinary agent execution context had standard proxy environment variables set, pointing to loopback proxies. The assigned ports changed across separate execution contexts.

At 10:27:41–10:27:45 UTC, this public, unauthenticated request returned HTTP 302 and curl exit code 0:

curl -q -I --connect-timeout 10 --max-time 15 https://accounts.feishu.cn/

At 10:28:27–10:28:32 UTC, an empty POST to the actual device-authorization endpoint returned HTTP 400 and curl exit code 0:

curl -q -sS --connect-timeout 10 --max-time 20 \
  -X POST \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  --data '' \
  https://accounts.feishu.cn/oauth/v1/device_authorization

Response:

{"error":"invalid_request","error_description":"The request is missing a required parameter: client_id.","code":20063}

The empty POST contains no application credentials or authorization tokens.

Reproduction sequence

  1. Use an installed official lark-cli on the dot cloud computer.
  2. Have the user run the personal OAuth login script in the cloud desktop terminal.
  3. Observe the device-authorization connection-refused error and exit code 3.
  4. Check whether proxy variables are present in that terminal, without printing any credential values.
  5. Run the public HEAD and empty POST above through the dot's agent command-execution tool and compare the results.

Related reports

No credentials, tokens, authorization codes, private tenant URLs or private files are included in this report.

Activity

  1. added
    bug
    connectivity
    auth
    dots
    on Oct 11, 2026
  2. github-actions commented on Oct 11, 2026

    @github-actions
    Contributor
  3. changed the title [-][Dots] Manual cloud terminal cannot reach Feishu OAuth endpoint while agent execution receives HTTP responses[/-] [+][Dots] Network/proxy mismatch between manual cloud terminal and agent execution blocks user handoff[/+] on Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    authbugconnectivitydots

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions