Skip to content

feat(workspace): import md/txt files into workspace prompts#275

Open
24baigei wants to merge 3 commits into
Stack-Cairn:mainfrom
24baigei:feat/workspace-prompt-file-import
Open

feat(workspace): import md/txt files into workspace prompts#275
24baigei wants to merge 3 commits into
Stack-Cairn:mainfrom
24baigei:feat/workspace-prompt-file-import

Conversation

@24baigei

@24baigei 24baigei commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add per-workspace prompt settings with global-prompt composition for GUI and WebUI.
  • Replace auto CLAUDE.md/AGENTS.md pickup UI with user file import (.md / .txt / .markdown / .text) into the workspace prompt textarea.
  • Append imported content when a prompt already exists; cap oversized files and cover helpers with unit tests.

Test plan

  • pnpm --dir crates/agent-gui exec node --test test/settings/workspace-prompt.test.mjs test/i18n/translations.test.mjs
  • Open workspace settings from the sidebar project menu
  • Import a .md file into an empty workspace prompt and save
  • Import a second file and confirm it appends
  • Toggle "include global prompt" and send a chat turn to confirm composition
  • Verify the same flow in WebUI

Replace the auto CLAUDE.md/AGENTS.md pickup toggle with a file import
control so users can upload .md/.txt content into the per-workspace
prompt. Keeps global prompt composition and adds mirrored GUI/WebUI
settings UI with unit coverage for import helpers.
@24baigei
24baigei force-pushed the feat/workspace-prompt-file-import branch from 7fbfa2f to da25d3e Compare July 25, 2026 18:11
24baigei added 2 commits July 26, 2026 02:18
Apply biome formatting so GUI and Gateway WebUI lint jobs no longer
fail on the new workspace-prompt helpers and related call sites.
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.

1 participant