Skip to content

/export command in the agent terminal hangs indefinitely on invocation #49

Description

@NeutronPrawn

Summary

The /export command never completes, regardless of whether it is invoked with or without a filename. A loading spinner appears and remains indefinitely until the operation is manually interrupted.

No error message is displayed, no file is created, and the Export Conversation dialog never appears.

Environment

  • Build mode: External (default OSS build via NCODE_USER_TYPE=external bun run build)

  • Command variants tested:

    • /export
    • /export <filename>
  • Platform: Linux 6.17.0-35-generic, Bash

  • Conversation size: Reproducible in sessions of all length

Steps to Reproduce

  1. Start NCode in any repository.

  2. Have a conversation

  3. Run either:

    /export
    

    or

    /export mylog.txt
    
  4. Observe that the spinner remains active indefinitely.

  5. Manually interrupt the operation (Ctrl+C or Esc) to regain control.

Expected Behavior

/export <filename>

  • Exports the conversation to <cwd>/<filename> (forcing a .txt extension if applicable).
  • Prints a success confirmation message.

/export

  • Opens the Export Conversation dialog.

  • Provides export options such as:

    • Copy to clipboard
    • Save to file

Actual Behavior

Both command paths hang before producing any output:

  • No Export Conversation dialog is displayed.
  • No file is written.
  • No error message is shown.
  • The spinner continues indefinitely.
  • The only way to recover is to manually interrupt the command.
Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions