[Bug] Agent resource access page loses its sidebar on refresh

Open Beginner friendly
#45,291 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

@XiaoBa-Yu is already working on this.

Since Nov 2, 2026.

  • #45292 by @XiaoBa-Yu — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
nextjs, typescript
Domain
frontend

Research direction

The missing file is the parallel-route sidebar @detailSidebar/agents/[agentId]/access-config/page.tsx. Compare it with the sidebar routes for the App and Knowledge resource access pages, and with default.tsx, which currently returns null. Add the Agent route by reusing AgentDetailSidebarSlot. Done when the sidebar stays visible after a full refresh and on direct entry to /agents/<agent-id>/access-config.

Written by the indexing model from the issue text.

Description

1.18.0
Self Checks
  • I have read the Contributing Guide and Language Policy.
  • This is a bug report, not a question for Discussions.
  • I have searched for existing issues, including closed ones.
  • I confirm that I am using English to submit this report.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • I have filled in the required template fields.
Dify version

Upstream main at c4e011609647a9f4817cdfc0ba8795b6b914c8b4.

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

Prerequisites: Agent V2 and RBAC enabled, with permission to manage an Agent's resource access.

  1. Open an Agent's Configure page.
  2. Navigate to Resource Access (/agents/<agent-id>/access-config) from its detail sidebar.
  3. Refresh the page, or open that URL directly.
✔️ Expected Behavior

The Agent detail sidebar remains visible and allows navigation back to Configure, as it does on App and Knowledge resource access pages.

❌ Actual Behavior

The resource access content loads, but the entire detail sidebar disappears after a full-page load.

The main access-config page exists, but its matching @detailSidebar/agents/[agentId]/access-config/page.tsx is missing. The parallel slot falls back to default.tsx, which returns null. Client-side navigation can mask the omission by retaining the previously active sidebar.

Adding the equivalent sidebar route and reusing AgentDetailSidebarSlot restores refresh and direct entry. This was verified with the upstream frontend and independently confirmed in local testing after backporting the fix. No permission logic changes are required.

Dominant language
Python
Stars
160k
Forks
25.4k
Avg merge
1d 1h
Merged PRs (30d)
608

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from langgenius/dify

All issues in langgenius/dify

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.