Skip to content

fix(channels): handle /reset as builtin command, fix long_output e2e timeout#2344

Merged
bug-ops merged 1 commit intomainfrom
2339-reset-telegram-cmd
Mar 28, 2026
Merged

fix(channels): handle /reset as builtin command, fix long_output e2e timeout#2344
bug-ops merged 1 commit intomainfrom
2339-reset-telegram-cmd

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Mar 28, 2026

Summary

Changes

  • crates/zeph-core/src/agent/mod.rs/reset handler added to handle_builtin_command after the /clear block
  • crates/zeph-core/src/agent/slash_commands.rs/reset registered under SlashCategory::Session for /help visibility
  • scripts/telegram-e2e/telegram_e2e.pyscenario_long_output reduced from 400→100 items, first_timeout 90s→60s
  • CHANGELOG.md — updated [Unreleased]

Test plan

  • cargo +nightly fmt --check — clean
  • cargo clippy -p zeph-core -- -D warnings — zero warnings
  • cargo nextest run --features full --lib --bins — 6965/6965 passed
  • Telegram E2E: /reset returns "Conversation history reset." immediately without LLM inference
  • Telegram E2E: long_output scenario passes with ≥2 messages within 60s timeout

…timeout

Fixes #2339: /reset is now intercepted in handle_builtin_command before
reaching the LLM inference path. Clears history, tool cache, and
user_provided_urls identically to /clear, then sends "Conversation history
reset." confirmation. Registered in COMMANDS under SlashCategory::Session
so it appears in /help.

Fixes #2340: reduce scenario_long_output prompt from 400 to 100 items and
first_timeout from 90s to 60s. 100 items still produces >4096 chars,
satisfying the len(replies) >= 2 assertion without exceeding the LLM timeout.
@github-actions github-actions bot added documentation Improvements or additions to documentation rust Rust code changes core zeph-core crate bug Something isn't working size/S Small PR (11-50 lines) labels Mar 28, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 28, 2026 10:49
@bug-ops bug-ops merged commit 1d51fb5 into main Mar 28, 2026
25 checks passed
@bug-ops bug-ops deleted the 2339-reset-telegram-cmd branch March 28, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core zeph-core crate documentation Improvements or additions to documentation rust Rust code changes size/S Small PR (11-50 lines)

Projects

None yet

1 participant