fix(console): route Agent source uploads and isolate Profile files - #7351
Open
x1n95c wants to merge 3 commits into
Open
fix(console): route Agent source uploads and isolate Profile files#7351x1n95c wants to merge 3 commits into
x1n95c wants to merge 3 commits into
Conversation
x1n95c
requested a deployment
to
ai-review-approved
August 27, 2026 09:35 — with
GitHub Actions
Waiting
|
Hi @x1n95c, this is your 29th Pull Request. 🙌 Join Developer CommunityThanks so much for your contribution! We'd love to invite you to join the official QwenPaw developer group! You can find the Discord and DingTalk group links under the "Developer Community" section on our docs page: We truly appreciate your enthusiasm—and look forward to your future contributions! 😊 We'll review your PR soon. |
x1n95c
requested a deployment
to
maintainer-approved
August 27, 2026 09:36 — with
GitHub Actions
Waiting
x1n95c
force-pushed
the
fix/profile-source-filter
branch
from
August 28, 2026 03:01
3e42782 to
af80b6f
Compare
x1n95c
requested a deployment
to
ai-review-approved
August 28, 2026 03:01 — with
GitHub Actions
Waiting
x1n95c
requested a deployment
to
ai-review-approved
August 28, 2026 06:20 — with
GitHub Actions
Waiting
x1n95c
requested a deployment
to
maintainer-approved
August 28, 2026 06:20 — with
GitHub Actions
Waiting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Fixes the Files workspace source navigation and upload routing for Agent configuration directories and project directories.
Previously, selecting Profile, Daily, or Knowledge Base and uploading a file could place it at the workspace root, and the Profile source could display configuration subdirectories such as
memory/anddigest/. Switching project directories could also leave the source panes showing stale Agent-directory content.This change makes each source map to its intended directory, keeps Agent configuration sources separate from project sources, and makes the UI communicate which files the Agent can normally read.
What changes
memory/anddigest/are shown only in Daily and Knowledge Base respectively. Enabled system-prompt files retain their ordering and toggles.memory/anddigest/directories. Project scope reads from project-local source directories and creates the selected directory on first upload.create_directoryoption..md) files.zh,en,id,ja,pt-BR,ru, andvi.Related Issue: Relates to #7322
Security Considerations:
Type of Change
Component(s) Affected
Checklist
pre-commit run --all-fileslocally and every hook passes.For Channel Changes (DingTalk, Lark, QQ, Console, etc.)
The Console changes are limited to the Files workspace UI and its workspace API client; no channel implementation is touched.
./scripts/check-channels.sh(or./scripts/check-channels.sh --changed) and it passestests/contract/channels/test_<channel>_contract.py(REQUIRED)create_instance()with proper channel initializationtests/contract/channels/__init__.py)tests/unit/channels/test_<channel>.pyfor complex internal logicTesting
Focused automated checks
The full frontend and backend test suites, and
pre-commit run --all-files, were not run for this change.Evidence
Profile source isolation
The Profile loader now filters the Agent workspace root listing to
entry.kind === "file". A configuration entry such asmemory/is therefore not rendered in Profile, while files undermemory/anddigest/are loaded by their dedicated source tabs.Upload routing
For Agent scope, Daily uploads use
root=workspaceandpath=memory; Knowledge Base uploads useroot=workspaceandpath=digest; Profile uploads use the configuration root. For project scope, the corresponding source directory is created on first upload and receives the file.Regression test output
The frontend test runner reports a jsdom
getComputedStylepseudo-element warning from the test environment; it does not affect the passing assertions.