Skip to content

Mentions: restrict “@” parsing to line-start or whitespace to avoid loading from pasted logs #7875

@hannesrudolph

Description

@hannesrudolph

Type

Enhancement

Summary

Pasting logs that contain “@https://…” or “@/path” mid-line causes the chat to treat them as @-mentions and auto-load URL/file content. Restrict @-mention parsing to line-start or a whitespace boundary to avoid accidental loads from stack traces.

Context

  • Affects users when pasting error logs/stack traces into chat.
  • Occurs when “@” appears within a line before a URL or absolute path included in logs.
  • Desired behavior: Only treat “@” as a mention when at the start of a line, or immediately preceded by whitespace. Keep “@” as an escape to disable mention parsing.

Constraints/Preferences

  • Apply the same boundary rule to special mentions like “@problems” and “@Terminal”.
  • Consider a setting to disable URL mentions while keeping file/special mentions.

Metadata

Metadata

Assignees

Labels

Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions