Skip to content

bug: uteke room summary panics on multi-byte Unicode characters #564

Closed

Description

@ajianaz

Bug Description

uteke room summary panics when room memories contain multi-byte Unicode characters such as comparison operators (<= , >= , etc.).

Error

Thread 'main' panicked at crates/uteke-core/src/memory/rooms.rs:479:48 — Rust string slicing on multi-byte characters causes index-out-of-bounds panic.

Steps to Reproduce

  1. Create a room
  2. Add memories containing Unicode multi-byte chars (e.g. "sync <= 5 min")
  3. Run uteke room summary <room_id> --json
  4. Panic occurs

Expected Behavior

Room summary should handle multi-byte Unicode gracefully — either skip/sanitize or use proper UTF-8 aware slicing.

Actual Behavior

Process panics with index-out-of-bounds at rooms.rs:479:48

Workaround

Avoid Unicode comparison operators in room memories. Use ASCII equivalents instead.

Environment

  • Uteke CLI: v0.6.4
  • OS: Linux ARM64 (Debian 13)
  • Rust edition: 2024

Related

  • uteke room document and uteke room stats work fine (not affected)

Activity

  1. added
    bug
    scope:core
    on Jul 5, 2026
  2. added a commit that references this issue on Jul 5, 2026
  3. added a commit that references this issue on Jul 12, 2026
    11a2664
  4. added 2 commits that reference this issue on Aug 13, 2026
    6cd2426
    52d16f4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugscope:core

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions