Skip to content

Last mentioned persona should be stored as an ID #1410

@dlqqq

Description

@dlqqq

Problem

PR #1405 adds the /refresh-persona slash command, which has an interesting side effect: personas may be removed from the chat.

The issue is that self.last_mentioned_persona stores a reference to the instance itself. That instance may no longer be available in case the last mentioned persona was a local persona that was deleted.

Proposed Solution

Store the ID of the last mentioned persona instead, and make last_mentioned_persona a computed property that may return None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions