Skip to content

Bug: Session load crashes with str3.replace error #310

@Ashwinhegde19

Description

@Ashwinhegde19

Bug Description

When attempting to load a session that contains messages, Kilo CLI crashes.

Error:

TypeError: undefined is not an object (evaluating 'str3.replace')
    at titlecase (src/util/locale.ts:3:12)

Steps to Reproduce

  1. Create a session in VS Code Insiders with KiloCode extension
  2. Have some conversation (messages) in the session
  3. Try to continue the same session in Kilo CLI: kilo --session ses_XXXXXXXX
  4. CLI crashes with the error above

Expected Behavior

Session should load and display conversation history.

Actual Behavior

CLI crashes immediately with titlecase error.

Environment

  • OS: Linux (Arch)
  • Kilo CLI Version: 1.0.19
  • VS Code: Insiders

Additional Context

The session JSON and message files exist in ~/.local/share/kilo/storage/ with correct format. The crash happens in the titlecase function in src/util/locale.ts when loading sessions with messages.

This prevents syncing sessions between VS Code KiloCode and Kilo CLI.

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