Skip to content

Random channel closing on linux #833

@tiphaineruy

Description

@tiphaineruy

Describe the bug

Request often fails mid streaming with "channel closed"

To Reproduce

make requests that have a large response

Expected behavior

no channel closed. timeout issue ?

Screenshots/Logs

> a request
start of answer then
The cursor position could not be read within a normal duration

Failed to send ReplyEvent::Done

Caused by:
    channel closed


> .info
model                   claude:claude-3-5-sonnet-20240620
max_output_tokens       8192 (current model)
temperature             -
top_p                   -
dry_run                 false
stream                  true
save                    false
keybindings             emacs
wrap                    no
wrap_code               false
save_session            -
compress_threshold      4000
function_calling        true
use_tools               -
rag_reranker_model      -
rag_top_k               4
highlight               true
light_theme             false
config_file             /home/tiphaine/.config/aichat/config.yaml
roles_dir               /home/tiphaine/.config/aichat/roles
env_file                /home/tiphaine/.config/aichat/.env
functions_dir           /home/tiphaine/.config/aichat/functions
rags_dir                /home/tiphaine/.config/aichat/rags
sessions_dir            /home/tiphaine/.config/aichat/sessions
messages_file           /home/tiphaine/.config/aichat/messages.md

Configuration

Environment (please complete the following information):

  • os version: NAME="TUXEDO OS"
    VERSION="3 22.04.4"
  • aichat version: 0.21.1
  • terminal version: kitty 0.35.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions