forgecode icon indicating copy to clipboard operation
forgecode copied to clipboard

[Bug]: answer in terminal truncated

Open Filipriec opened this issue 5 months ago • 4 comments

Bug Description

Forgecode answer is getting visually truncated in the terminal. I simply see only part of the response. I have to use :copy to get the full answer.

Steps to Reproduce

Ask forgecode something and answer is getting truncated like 80% of the time.

Expected Behavior

To see the full answer in the terminal

Actual Behavior

Visually seeing answers only partly

Forge Version

forge 0.1.0-dev

Operating System & Version

NixOS

AI Provider

Other

Model

DeepSeek V4 (this bug is not model dependent)

Installation Method

Built from source

Configuration

CONFIGURATION

max_search_lines = 1000
max_search_result_bytes = 10240
max_fetch_chars = 50000
max_stdout_prefix_lines = 100
max_stdout_suffix_lines = 100
max_stdout_line_chars = 500
max_line_chars = 2000
max_read_lines = 2000
max_file_read_batch_size = 50
max_file_size_bytes = 104857600
max_image_size_bytes = 262144
tool_timeout_secs = 300
auto_open_dump = false
max_conversations = 100
max_sem_search_results = 100
sem_search_top_k = 10
services_url = "https://api.forgecode.dev/"
max_extensions = 15
max_parallel_file_reads = 64
model_cache_ttl_secs = 604800
use_forge_committer = false
max_commit_count = 20
top_p = 0.8
top_k = 30
max_tokens = 20480
max_tool_failure_per_turn = 3
max_requests_per_turn = 100
restricted = true
tool_supported = true
currency_symbol = "$"
currency_conversion_rate = 1.0
verify_todos = true
research_subagent = true
subagents = true

[retry]
initial_backoff_ms = 200
min_delay_ms = 1000
backoff_factor = 2
max_attempts = 8
status_codes = [
    429,
    500,
    502,
    503,
    504,
    408,
    522,
    524,
    520,
    529,
]
suppress_errors = false

[http]
connect_timeout_secs = 30
read_timeout_secs = 900
pool_idle_timeout_secs = 90
pool_max_idle_per_host = 5
max_redirects = 10
hickory = false
tls_backend = "default"
adaptive_window = true
keep_alive_interval_secs = 60
keep_alive_timeout_secs = 10
keep_alive_while_idle = true
accept_invalid_certs = false

[session]
provider_id = "deepseek"
model_id = "deepseek-v4-pro"

[updates]
frequency = "daily"
auto_update = true

[compact]
retention_window = 6
eviction_window = 0.2
max_tokens = 2000
token_threshold = 100000
message_threshold = 200
on_turn_end = false

[reasoning]
effort = "high"

Filipriec avatar Jun 15 '26 09:06 Filipriec

can you try this with latest main, and share some screenshots

amitksingh1490 avatar Jun 15 '26 09:06 amitksingh1490

I will let you know when I reproduce the bug.

Filipriec avatar Jun 15 '26 11:06 Filipriec

Compiled latest main from source.

Image

I must say, that truncation happens far less often than previously. Previously Ive seen the answer and then terminal jumped and truncated like 75% of the answer. Sometimes Ive seen only answer partly. Since todays compilation, this is the first truncation that I spotted

Filipriec avatar Jun 15 '26 15:06 Filipriec

Closing this, since i spotted it only once on the screenshot above. Since I did built from main branch I dont experience issues as I was previously. Im happy, keep up the good job team

Filipriec avatar Jun 16 '26 14:06 Filipriec