Skip to content

feat(dsh): embed existing Dashboard in right sidebar - #2589

Merged
hidb4ai merged 3 commits into
masterfrom
codex/dsh-dashboard-embed
Nov 12, 2026
Merged

hidb4ai merged 3 commits into
masterfrom
codex/dsh-dashboard-embed

Conversation

@knqiufan

@knqiufan knqiufan commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Which issue or RFC does this PR close?

Refs #2514 and RFC #2528 (task 2). Builds on #2569, which is included in master as 05a50973.

Rationale for this change

Users can open the existing PowerContext Dashboard from a DSH conversation and work in the right panel. The Dashboard keeps its own sign-in, permissions, and write confirmations.

What changes are included in this PR?

  • Add Open Dashboard to the existing PowerContext control and keep diagnostics reachable. The authenticated Host bridge checks Dashboard availability and picks the current conversation's Scope. Dashboard failures leave API health independent.
  • Open the existing Dashboard in DSH Web's Browser iframe or Desktop's isolated Browser webview. Dashboard sign-in retains the selected Scope; the URL contains no token.
  • For local Web, require matching schemes and loopback hostnames for the iframe (ports may differ). For example, DSH on 127.0.0.1 and Dashboard on localhost cannot keep the strict sign-in cookie in the iframe. The panel explains how to align the addresses and offers Open in browser for the same Scope.
  • Offer the same external entry when the right Browser container is unavailable or there is no selected conversation. No empty conversation is created.
  • Use the DSH release's primary button colors. Light screenshot · Dark screenshot.
  • Update both integration guides. This PR changes neither DSH source nor Handoff code.

Are there any user-facing changes?

Path: DSH PowerContext control → Open Dashboard → right Browser panel. Disabled Dashboard, rejected credentials, unresolved Scope, and load failures show separate guidance. The plugin does not enable Dashboard or relax authentication. A Server configured with Dashboard and a custom authentication Provider rejects that combination at startup.

How was this change tested?

  • Real Web regression: Installed powercontext-dsh-0.1.0.tgz (SHA-256 48f14e44b77636fbc521415e8ecbaf689fd92e478b2d9989a2d6697385386418) in DSH Web 0.2.2-rc.1 against a token-protected local Server. With 127.0.0.1 and localhost, the panel showed address guidance, did not open the iframe, kept the API ready, and offered a link whose top-level sign-in preserved the Scope. With both on localhost and different ports, the right iframe displayed the sign-in form with the selected Scope. This run stopped at the form.
  • Earlier real host acceptance: Official DSH Web and arm64 Desktop 0.2.2-rc.1 rendered the Dashboard in their respective containers. Checks included no-token embedding, fresh token sign-in, two Scope selections, disabled Dashboard with healthy API, navigation, language/theme, narrow layout, and Desktop Browser load failure. A real Uvicorn startup rejected the custom Provider and Dashboard combination before binding a port. See the acceptance record for the archive, release, and scenario details.
  • Automated: pnpm test:all (538), release archive build and install/load check, Dashboard Python tests (88), make check, and make docs-test passed.

Acceptance limits: The released host automatically selected or restored a conversation, so the no-selection path was covered by a behavior test. The Desktop Plugins main view did verify the Browser-unavailable fallback without adding a session. The Desktop dual-session run selected genuine sessions using the host's persisted selection and a renderer reload. Desktop was not rerun for the Web loopback change.

AI usage statement

OpenAI Codex assisted with implementation, tests, bilingual documentation, and local acceptance. Maintainer review is pending.

@knqiufan
knqiufan force-pushed the codex/dsh-dashboard-embed branch from 9fcb7a9 to 702d093 Compare November 11, 2026 11:05
@knqiufan
knqiufan marked this pull request as ready for review November 11, 2026 11:06

@hidb4ai hidb4ai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The embedded sign-in failure below needs fixing.

Merge readiness also needs attention: #2569 is now squash-merged into master, but this PR still targets codex/dsh-plugin-ui-status. Against master 923e3d4, git merge-tree reports 11 conflicted files. Please retarget/update the branch and resolve those conflicts. The Main workflow only runs for PRs targeting master; this head currently has only the CLA result, so CLEAN against the old target does not establish readiness for master.

@knqiufan
knqiufan changed the base branch from codex/dsh-plugin-ui-status to master November 12, 2026 01:26
@knqiufan
knqiufan force-pushed the codex/dsh-dashboard-embed branch from 702d093 to deb7dac Compare November 12, 2026 01:26
@AlexStocks AlexStocks added the 1.5.2 v1.5.2 release tracking label Nov 12, 2026
@hidb4ai
hidb4ai dismissed their stale review November 12, 2026 15:25

Re-reviewed deb7dac: the reported loopback login issue is fixed, the PR now targets master without merge conflicts, and current-head CI passes. Withdrawing the obsolete blocking review; this is not an approval.

@hidb4ai hidb4ai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hidb4ai
hidb4ai merged commit 484b063 into master Nov 12, 2026
69 checks passed
@PsiACE
PsiACE deleted the codex/dsh-dashboard-embed branch November 16, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.5.2 v1.5.2 release tracking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants