Skip to content

Follow-up: replace string-based export marker stripping with structured internal context filtering #3145

Description

@ShenAC-SAC

Split from #3138.

Related:

#3131 improved the user-facing export path by stripping internal markers such as:

  • <system-reminder>
  • <memory>
  • <current_date>
  • <uploaded_files>

This is useful as a containment fix, but it is still based on hard-coded text markers.

The maintainability concern is that string/tag stripping is a fragile boundary. It can miss new internal markers added later, and it can also strip user-visible content if the same tag-like text appears in normal conversation content.

Longer term, internal context should ideally be represented with structured message metadata or hidden message semantics, and export should filter based on those semantics instead of matching strings.

Suggested follow-up:

Track a cleaner internal-message/export boundary so user-facing export does not depend only on string marker stripping.

This is a maintainability follow-up, not an immediate release blocker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions