Skip to content

Fix filenames across consecutive imports - #15

Draft
marpaia wants to merge 1 commit into
masterfrom
marpaia/4
Draft

Fix filenames across consecutive imports#15
marpaia wants to merge 1 commit into
masterfrom
marpaia/4

Conversation

@marpaia

@marpaia marpaia commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Update the import name whenever a new file is accepted.
  • Keep format inference and file-body loading unchanged.

Root cause and impact

The filename state was only initialized when it was empty. After the first upload, selecting or dropping another file retained the first filename and mislabeled the subsequent import.

Each consecutive import now uses the filename of the file that was actually selected.

Validation

  • pnpm --dir apps/desktop lint
  • pnpm --dir apps/desktop build

Fixes #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Importing multiple files in a row re-uses name of first file

1 participant