Skip to content

OPE-75: '@ File Mentions #413

Closed
Closed

Description

@ivanfenenko

Let users insert project file references into Session Chat prompts with @, matching opencode TUI/web file autocomplete.

Shell scope:

  • Typing @ in the composer offers fuzzy file matches from the connected project (alongside or in addition to agent mentions)
  • Selecting a file inserts a structured file reference into the prompt payload
  • Respect model/context limits and existing @ agent mention UX

Remaining:

  • Define product rules vs agent @ mentions (same trigger, disambiguation, or separate mode)
  • Add file search on both protocols (v1 GET /find/file, v2 GET /api/fs/find; confirm against /doc and /openapi.json) and wire it into composer suggestions on iOS and Android
  • Decide whether the file reference reuses the existing prompt-part source {value,start,end} already sent by PromptJSONBodyWriter / PromptJsonBodyWriter
  • Send structured file parts (or equivalent server contract) on prompt submit

Notes:
Placeholder shell. Agent @ mentions already ship via OPE-59; this adds file references.


Imported from Linear OPE-75. Linear status: Backlog. Priority: Low. Created 2026-07-23.
Related: OPE-56, OPE-59, OPE-78.

Activity

  1. added
    enhancement
    ios
    android
    shared
    backlog
    priority: low
    on Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidbacklogenhancementiospriority: lowshared

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions