Skip to content

fix(input): preserve file paths in the message box instead of replacing them with file contents #170

Description

@mdev34-lab

Problem

When a file path is entered/inserted into the message box, AlphaCode can replace the path with the file's contents. This destroys the original path in the user's message and makes it impossible to send the literal path as intended.

Expected behavior

File paths entered or inserted into the message box should remain paths in the message text.

If file-content attachment/expansion is an intentional feature, it should require an explicit user action and must not silently replace the path itself.

Acceptance criteria

  • Typing or pasting a file path into the message box preserves the path verbatim.
  • File-path detection must not mutate ordinary message text into file contents implicitly.
  • Any intentional file-content insertion remains available through an explicit mechanism.
  • Add a regression test covering a valid local file path and asserting that the message text still contains the path rather than the file contents.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions