Skip to content

/copy command triggers Error #16149

@chenchuiqing

Description

@chenchuiqing

What happened?

Environment: Windows 11, Node.js v22.21.0 Error: /copy command triggers Error: ENOENT: no such file or directory, open 'D:\dev\tty' Cause: The CLI is incorrectly attempting to access a Unix-style TTY device on a Windows environment by prefixing the current drive letter.

node:events:497
      throw er; // Unhandled 'error' event
      ^

Error: ENOENT: no such file or directory, open 'D:\dev\tty'
Emitted 'error' event on WriteStream instance at:
    at emitErrorNT (node:internal/streams/destroy:170:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'D:\\dev\\tty'
}

Node.js v22.21.0

What did you expect to happen?

Correctly copy the data to the clipboard

Client information

  • CLI Version: 0.23.0
  • Git Commit: 3ff0558
  • Session ID: bb7cea6a-4b79-41bb-a503-82adb2bf8fdc
  • Operating System: win32 v22.21.0
  • Sandbox Environment: no sandbox
  • Model Version: auto-gemini-3
  • Memory Usage: 189.4 MB
  • Terminal Name: Unknown
  • Terminal Background: #0c0c0c
  • Kitty Keyboard Protocol: Unsupported

Login information

Google Account

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues related to User Interface, OS Support, Core Functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions