Skip to content

Streaming cannot be disabled #5531

Description

@andrewcooke

Issue

i am trying to disable streaming to get more accurate pricing when using cache prompts.

$ cat .aider.conf.yml | egrep -v key

file: [AGENTS.md,TODO.md]
cache-prompts: true
cache-keepalive-pings: 12
no-stream: true

output from /help:

I can see the issue clearly now! In the verbose output, you can see:                                                                               

                                                                                                                                                   
 streaming: true                                                                                                                                   
                                                                                                                                                   

This confirms that despite your attempts to disable streaming via --no-stream or config file settings, aider is still running with streaming       
enabled.                                                                                                                                           

This appears to be a bug in aider v0.86.2. The --stream/--no-stream flag or the stream: false config setting is not being properly respected.      

What you should do:                                                                                                                                

 1 File a bug report on GitHub with this information:                                                                                              
    • Version: v0.86.2                                                                                                                             
    • Model: claude-sonnet-4-5                                                                                                                     
    • Issue: --no-stream flag and stream: false config are ignored                                                                                 
    • Evidence: verbose output shows streaming: true despite settings                                                                              
    • Include the verbose output fragment you just showed                                                                                          
 2 Workaround: Unfortunately, there doesn't appear to be an easy workaround if the command-line flag, config file, and environment variable are all
   being ignored. You might need to:                                                                                                               
    • Wait for a fix in the next version                                                                                                           
    • Try downgrading to an earlier version if streaming is critical for your use case                                                             
    • Check if there's already an issue filed and add your report there                                                                            

Relevant links:                                                                                                                                    

 • https://github.com/Aider-AI/aider/issues (to file or search for existing issues)                                                                
 • https://aider.chat/docs/config/options.html#stream (documentation for the setting)                                                              
 • https://discord.gg/Y7X7bhMQFV (Discord if you want to report it there too)                                                                      

This is definitely a bug that should be fixed - the setting is clearly documented but not working as expected.                                     

Tokens: 14k sent, 1.9k cache write, 398 received. Cost: $0.04 message, $0.06 session.

thisis based on output like:

Model settings:
accepts_settings: [
    "thinking_tokens"
]
cache_control: true
caches_by_default: false
edit_format: "diff"
editor_edit_format: "editor-diff"
editor_model_name: "claude-sonnet-4-5"
examples_as_sys_msg: false
extra_params: {
    "max_tokens": 64000
}
lazy: false
name: "claude-sonnet-4-5"
overeager: false
reasoning_tag: null
reminder: "user"
remove_reasoning: null
send_undo_reply: false
streaming: true   <<<<<<<<<<<<<<<<<<
system_prompt_prefix: null
use_repo_map: true
use_system_prompt: true
use_temperature: true
weak_model_name: "claude-haiku-4-5"
RepoMap initialized with map_mul_no_files: 2

HOWEVER, do also see this in verbose output:

USER Aider v0.86.2
USER Main model: claude-sonnet-4-5 with diff edit format, prompt cache, infinite output
USER Weak model: claude-haiku-4-5
USER Git repo: .git with 960 files
USER Repo-map: using 4096 tokens, files refresh
USER Added AGENTS.md to the chat.
USER Added TODO.md to the chat.
kwargs:
{
    "model": "claude-sonnet-4-5",
    "stream": false,
    "temperature": 0,
    "max_tokens": 64000,
    "timeout": 600
}

Version and model info

• Version: v0.86.2                                                                                                                             
• Model: claude-sonnet-4-5                                                                                                                     

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions