Skip to content

i got this error on a long context paste. #1

@Oculto54

Description

@Oculto54
  • Keep only last N charse Go ~/Opencode
    707 | */▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
    708 | function keepLast(text: string, maxChars: number): string { tab agents ctrl+p commands • OpenCode 1.2.20
    709 | if (text.length <= maxChars) {
    ^
    TypeError: undefined is not an object (evaluating 'text.length')
    at keepLast (/Users/Paulo/.cache/opencode/node_modules/opencode-working-memory/index.ts:709:7)
    at (/Users/Paulo/.cache/opencode/node_modules/opencode-working-memory/index.ts:1641:35)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions