Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .agents/skills/dsh-dev/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,3 +409,9 @@ different facts rejected an otherwise hash-matching installed package. Compare p
to `productImProvider.upstream.dsh`, preserve source and runtime digest checks, and qualify
the current composition separately. Do not rewrite the original Provider provenance to make
it look newly qualified.

### Remote Host QA profiles and hidden sidebar copies (#2500)

The launcher and `verify-app` share a temporary cookie jar named from `basename(DSH_HOME)`. Two isolated homes named `home` in different parent folders overwrite that jar, so the second launch can make the first Host's doctor return 401 while its own browser still works. Give concurrent homes distinct basenames (`host-a`, `host-b`), preserve the first refusal and verify each Host separately. Do not treat this verification-cookie collision as a product authentication failure.

The qualified workspace retains a hidden sidebar copy beside the visible Channels panel. The two Add remote buttons can have the same accessible name. A first-match selector can click or fill the hidden copy; choose visible elements as the two-Host journey requires, and wait for the submit button to become enabled after input. The real Windows Web baseline paired successfully after the driver selected visible controls and used keyboard input; no product change was required.
1 change: 1 addition & 0 deletions .agents/skills/verify-deepseekbot/features/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

| Feature | Needs a model | Scripted journey | File |
| --- | --- | --- | --- |
| Browser Remote Host pairing, tabs and Host Feed | only for a reply | `verify-app` two-Host path | [remote-hosts.md](remote-hosts.md) |
| VRM companion Panel | yes for speaking | `scripts/e2e-vrm-companion.mjs` | [vrm-companion.md](vrm-companion.md) |
| Desktop whole-window zoom (controlled S1 / Windows candidate) | no | `scripts/e2e-desktop-zoom-launch.mjs`, `scripts/e2e-desktop-zoom-windows.mjs`, `scripts/e2e-dock-zoom.mjs`, `scripts/e2e-workspace-chrome.mjs` | [desktop-window-zoom.md](desktop-window-zoom.md) |
| Global search: Alt/Option+K, settings results and pinyin matching | no | `verify-app` Bot mode path | [global-search.md](global-search.md) |
Expand Down
28 changes: 28 additions & 0 deletions .agents/skills/verify-deepseekbot/features/remote-hosts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Browser Remote Hosts

The browser pairs a Remote Host as a Paired Device and reads its Host Feed through the shared mobile Host client. This Host remains the management context.

## Sub-features

- `pair`: Add remote redeems the other Host's pairing link.
- `tabs`: All, This host and each Remote Host filter the channel list; Chinese uses 全部、本机、远程.
- `open`: a remote row opens a Host-scoped conversation.
- `upgrade`: existing browser pairings and the selected tab survive the storage-key rename.
- `remove`: removing a Host forgets its rows, stops its Inbox and releases cached avatar object URLs.

## How to get to it (user POV)

Enter Bot mode, then Messages. Choose Add remote above the channel list. Paste a link from the other Host's Settings → Devices → Pair a phone. Choose All or the Remote Host tab, then a Bot or group row. Right-click the Host tab to remove it.

## Driving it with verify-app

Launch two independently named instances with `node scripts/verify-app.mjs launch --name <name>`. Run `doctor` for each. Open both local login URLs. Pair from Host A's browser using the link created on Host B. Verify the new tab, All rows, remote conversation header and canonical device record on Host B. Capture tabs and the Add remote dialog in English and Chinese, light and dark. For the rename baseline, run the pre-change Client with the same browser storage, upgrade, and verify the pairing and selected Host remain without another offer.

Read the browser console and run `node scripts/verify-app.mjs observe --name <name>` after startup and relevant actions. For a reply test select `deepseek-v4-pro`, send a uniquely marked message and compare the visible response to Host B's canonical timeline. Inspect the remote timeline in reverse DOM order: newest is first.

## Gotchas

- The Inbox and authenticated avatar cache are scaffold state; rows do not yet display their counts or avatars in Track 0.
- Remote chat displays text and attachment names; images and cards are not qualified.
- The Host look is still per phone. DSH Desktop and two physical machines over a real tailnet are not qualified by a two-Host local run.
- Dismiss Continue and Skip onboarding overlays before selecting Messages. Retain any failed drive evidence before retrying.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/pr-screenshots/2500-t0/after-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/pr-screenshots/2500-t0/after-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/pr-screenshots/2500-t0/before-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/pr-screenshots/2500-t0/before-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions changes/2500-host-feed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
section: Changed
---

## en

- Browser tabs now say **This host** and **Add remote**, preserving existing pairings and the selected Host while preparing shared Host Feed inbox and avatar state ([#2500](https://github.com/BotHarness/DeepSeekBot/issues/2500)).

## zh

- 网页标签改用**本机**和**添加远程**,保留已有配对及所选 Host,并为共享 Host Feed 的收件箱和头像状态做好准备([#2500](https://github.com/BotHarness/DeepSeekBot/issues/2500))。
6 changes: 6 additions & 0 deletions docs/architecture/botharness-architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,12 @@ The application-defined mobile conversation directory combines the selected Host

Chats shares its persisted device-local conversation filter with Activity. The native source pager derives tabs from verified Organization listings, including empty memberships and authorized guest labels, in enrolled-source order. Source/account-qualified keys preserve identity while swiping; tab selection does not switch Host management authority. Unsupported Cloud Activity has an explicit notice and no borrowed Computer badge; All discloses partial Computer-only coverage. This first slice retains one active Computer. See the Chats environment extension in [ADR-0229](../adr/0229-mobile-cloud-sessions-are-independent-of-host-pairing.md).

### Browser Remote Hosts and Host Feed (#2500)

The application-defined browser `RemoteHosts` owner keeps its pairings and selected Host tab in device-local storage. Each Remote Host reuses the phone's Host client and conversation module through the device gateway; This Host never relays the Remote Host's credential. The shared `createInbox(client, { activity: true })` supplies each Remote Host's Human Inbox and unread snapshot. The first browser subscriber starts the client and Inbox, and the last stops them while retaining the last Inbox snapshot. Authenticated avatar fetches publish an immutable URL-to-object-URL map; removal, roster replacement and final unsubscribe release obsolete objects and discard late fetch results. The storage-key rename imports existing browser pairings and the selected tab. See [ADR-0242](../adr/0242-a-browser-pairs-other-computers-through-their-device-gateway.md) and [ADR-0243](../adr/0243-every-client-reads-every-host-through-one-host-feed.md).

This scaffold does not yet display remote avatars, activity, unread counts or Activity Center items. This Host still reads its existing bridge/store until those Host Feed slices migrate. Device Notification Preference remains a subsequent device-owned slice; the browser has no closed-page notification path.

### Version-bound Memory image previews (#2214, first Web slice)

The application-defined Memory Service exposes bounded PNG representations alongside its existing current-file and Git-diff queries. Metadata identifies worktree/index/exact reachable commit plus a SHA-256 byte revision; authenticated image transfer rechecks that owner, repository selector, path and revision before returning `image/png` with no-store semantics. It does not accept arbitrary blob IDs, revision expressions or Host paths. Current reads retain path containment, control-directory exclusion and safe-open checks; Git reads accept regular-file blobs only. A changed mutable source returns an explicit stale refusal rather than current bytes under an old version label.
Expand Down
45 changes: 20 additions & 25 deletions packages/client/src/client/bot-sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import { Menu } from './appearance-primitives.js';
import { ALL_COMPUTERS, computerSources } from './computer-sources.js';
import { ALL_HOSTS, remoteHosts } from './remote-hosts.js';
import { useChannelDockActive } from './channel-dock.js';
import {
ComputerSourceMark,
ComputerTabs,
RemoteComputerRows,
useComputerSources,
} from './computer-tabs.js';
import { RemoteHostMark, HostTabs, RemoteHostRows, useRemoteHosts } from './host-tabs.js';
import { plainMarkdown } from '../../../core/src/channels/message-preview.js';
import { PointerMenu } from './ds/pointer-menu.js';
import { PanelEmptyState } from './ds/empty-state.js';
Expand Down Expand Up @@ -704,7 +699,7 @@ function BotRow({
<span className="bh-body">
<span className="bh-top">
<span className="bh-name">{bot.displayName}</span>
{source ? <ComputerSourceMark /> : null}
{source ? <RemoteHostMark /> : null}
{muted ? <MutedMark t={t} /> : null}
<ChannelMessageTime channel={channel} now={now} t={t} />
</span>
Expand Down Expand Up @@ -837,7 +832,7 @@ function ChannelRow({
<span className="bh-body">
<span className="bh-top">
<span className="bh-name">{channel.name}</span>
{source ? <ComputerSourceMark /> : null}
{source ? <RemoteHostMark /> : null}
{muted ? <MutedMark t={t} /> : null}
<ChannelMessageTime channel={channel} now={now} t={t} />
</span>
Expand Down Expand Up @@ -1022,9 +1017,9 @@ export function BotSidebar({
t,
}: SidebarProps): ReactElement {
const state = useClientStore(keepClientState, rosterInputs);
const computerTabs = useChannelDockActive();
const computers = useComputerSources();
const remoteOpen = computerTabs && computers.open !== undefined;
const hostTabs = useChannelDockActive();
const remoteHostsState = useRemoteHosts();
const remoteOpen = hostTabs && remoteHostsState.open !== undefined;
const channelUnread = state.humanInbox.channelUnread;
const mutedChannelSet = new Set(state.roster.muted);
const prefs = useBotModePrefs((value) => value);
Expand Down Expand Up @@ -1334,7 +1329,7 @@ export function BotSidebar({
: [...railPinnedChannels, ...railChannels].map((channel) => channel.id);
const shortcutIdsRef = useRef<readonly string[]>(shortcutIds);
const openLocalConversation = (): void => {
computerSources().close();
remoteHosts().close();
onOpenConversation?.();
};
const openConversationRef = useRef(openLocalConversation);
Expand Down Expand Up @@ -1940,7 +1935,7 @@ export function BotSidebar({
dragActiveRef.current = channelDragActive || sectionDragActive;

const showSource =
computerTabs && computers.tab === ALL_COMPUTERS && computers.computers.length > 0;
hostTabs && remoteHostsState.tab === ALL_HOSTS && remoteHostsState.hosts.length > 0;
const renderChannelRow = (channel: ChannelSummary, scopeId: ScopeId): ReactElement => {
const drag = channelDragProps(scopeId, channel.id);
const bot = channel.botSlug === undefined ? undefined : botBySlug.get(channel.botSlug);
Expand Down Expand Up @@ -2193,19 +2188,19 @@ export function BotSidebar({
{headerEnd}
</div>
);
const remoteTab = computerTabs
? computers.computers.find((computer) => computer.host.hostId === computers.tab)
const remoteTab = hostTabs
? remoteHostsState.hosts.find((remote) => remote.host.hostId === remoteHostsState.tab)
: undefined;
if (remoteTab !== undefined)
return (
<div className="bh-root bh-region" data-bh-tour="roster">
{headerTarget
? createPortal(<InstantTooltipScope>{header}</InstantTooltipScope>, headerTarget)
: header}
<ComputerTabs t={t} />
<HostTabs t={t} />
<div className="bh-roster-list">
<RemoteComputerRows
computer={remoteTab}
<RemoteHostRows
remote={remoteTab}
query={query}
showSource={false}
onOpen={onOpenConversation}
Expand Down Expand Up @@ -2261,7 +2256,7 @@ export function BotSidebar({
{headerTarget
? createPortal(<InstantTooltipScope>{header}</InstantTooltipScope>, headerTarget)
: header}
{computerTabs ? <ComputerTabs t={t} /> : null}
{hostTabs ? <HostTabs t={t} /> : null}
{state.status === 'loading' && state.bots.length === 0 ? (
<LoadingSkeleton kind="roster" label={t('roster.loading')} />
) : null}
Expand Down Expand Up @@ -2859,11 +2854,11 @@ export function BotSidebar({
</div>
);
})}
{computerTabs && computers.tab === ALL_COMPUTERS
? computers.computers.map((computer) => (
<RemoteComputerRows
key={computer.host.hostId}
computer={computer}
{hostTabs && remoteHostsState.tab === ALL_HOSTS
? remoteHostsState.hosts.map((remote) => (
<RemoteHostRows
key={remote.host.hostId}
remote={remote}
query={query}
showSource
onOpen={onOpenConversation}
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/client/channel-dock.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mountWorkspaceChrome, updateWorkspaceChrome } from './workspace-chrome.js';
import { useComputerSources } from './computer-tabs.js';
import { useRemoteHosts } from './host-tabs.js';
import { RemoteConversationView } from './remote-conversation-view.js';
import { AppearancePanelHeader } from './appearance-panel-header.js';
import { AppearanceContext } from './appearance-context.js';
Expand Down Expand Up @@ -327,7 +327,7 @@ function workspaceState(dock: DockContextValue, id: string): SubpanelState | und

function ChannelBodyPanel(): ReactElement {
const dock = useDock();
const remote = useComputerSources().open;
const remote = useRemoteHosts().open;
if (remote !== undefined) return <RemoteConversationView target={remote} t={dock.t} />;
const panels: Record<string, { label: string; header?: ReactNode; content: ReactNode }> = {
[MESSAGE_LEAF]: { label: dock.t('workspace.messages'), content: <ChannelMessageContent /> },
Expand Down
Loading
Loading