Commit Graph
1412 Commits
Author SHA1 Message Date
Menghuan1918 ac8fcd5516 merge review/path-roots: #1079 UNC prefix, #1070 subdirectory session root 2026-10-29 23:42:13 +08:00
Menghuan1918 88c86abb11 merge review/markdown-links: #1067 angle-bracket link destinations, #1074 Side Chat local source links 2026-10-29 23:42:06 +08:00
Menghuan1918 2e691142da merge review/1083-editor-draft: #1083 confirm before an in-place file switch drops an unsaved draft 2026-10-29 23:41:57 +08:00
Menghuan1918 b1c33577be merge review/html-preview-mime: #972 serve preview assets with real MIME types 2026-10-29 23:41:47 +08:00
Menghuan1918 51f8cebda5 merge review/menu-submenu: #974 close the reduced-motion media query, #988 submenu flip tokens for Git More Actions 2026-10-29 23:41:37 +08:00
Menghuan1918 dcc2375416 merge review/small-fixes: #922 split-pane tab, #1032 search probe TDZ, #966 upload rename retry 2026-10-29 23:41:29 +08:00
Menghuan1918 5ad49ad1bd docs(changelog): record the subdirectory session-root fix 2026-10-29 23:36:52 +08:00
Menghuan1918 e17ab5c52e merge: keep the UNC prefix when folding separators (#1079) 2026-10-29 23:36:41 +08:00
Menghuan1918 6d9e02c3ce fix(active-worktree): keep the session cwd's own path as the root
The guard still substituted the repository top level whenever the caller's
base spelling was not lexically under git's canonical top (macOS /var vs
/private/var, symlinked workspaces), so #1070's argument-order swap only
covered the lexically-canonical case - its own subdirectory test is red on
macOS.

Make the session cwd authoritative: canonicalize it once with realpath (so
containment against git's canonical paths still works and nested-worktree
adoption stays correct, #952) and never substitute the repository top.
Linked-worktree following is unchanged.

Refs #1024 #1080 #1070
2026-10-29 23:36:32 +08:00
Menghuan1918 845837f958 merge: keep a subdirectory session cwd (#1070) 2026-10-29 23:36:10 +08:00
Menghuan1918 56560e24a1 test(active-worktree): pin a subdirectory session cwd as the root (#1024) 2026-10-29 23:35:42 +08:00
Menghuan1918 fcf78935a4 docs(changelog): record #1067 and #1074 2026-10-29 23:31:37 +08:00
Menghuan1918 e290059fd5 test(markdown): pin angle-delimited destination semantics with spaces 2026-10-29 23:31:27 +08:00
Menghuan1918 068b955063 docs(readme): sync the HTML-preview MIME bullet into README_ZH
README.md and README_ZH.md are the same bullet list line for line; PR #972 only updated the English copy. Mirror the CSS/JS/JSON/fonts/wasm content-type clause in Chinese so the pair does not drift.
2026-10-29 23:31:24 +08:00
Menghuan1918 f1d52c9241 merge: PR #1074 (Side Chat local source links) 2026-10-29 23:31:01 +08:00
Menghuan1918 e790701791 fix(git): publish submenu flip tokens for More Actions (#988)
The More Actions menu's repo/worktree rows open nested submenus, but this button-anchored entry never called useSubmenuFlip — the body attribute layout.css consumes was absent, so even with #955's unclosed media query fixed the submenus still opened past the right edge of the docked sidebar.

Keep the trigger's measured corner in the menu state (a boolean cannot feed the coordinate-based hook, and a keyboard activation has no cursor point) and hand it to the same hook the file-tree row menu uses. The new test opens the real menu on a mocked right-edge trigger and pins the 'down left' tokens plus their removal on close.
2026-10-29 23:29:02 +08:00
Menghuan1918 27e9417e63 merge: PR #966 — bounded retry for concurrent same-name upload rename contention 2026-10-29 23:28:16 +08:00
Menghuan1918 fbc7e4cd1b merge: PR #1032 — fix TDZ crash when probe spawn throws synchronously 2026-10-29 23:28:13 +08:00
Menghuan1918 92b6ddc0e2 merge: PR #922 — keep same-pane tab when dragging its only tab back 2026-10-29 23:28:08 +08:00
Menghuan1918 5834120350 merge: PR #1067 (angle-delimited inline link destinations, #1015) 2026-10-29 23:27:20 +08:00
Menghuan1918 a2a0dee305 Merge branch 'pr-972' into review/html-preview-mime 2026-10-29 23:27:19 +08:00
Menghuan1918 6f74c7ee2f merge: PR #974 close the reduced-motion media query (#955) 2026-10-29 23:26:08 +08:00
Menghuan1918 479582da7e review: merge PR #1083 (in-place switch draft guard) 2026-10-29 23:25:18 +08:00
unsc9 6caec31d83 test: give the aggregate-auth shell probe a Windows-sized timeout 2026-10-29 10:47:58 +08:00
unsc9 3d44985f50 chore: retrigger CI after an unrelated plugin-mount e2e flake 2026-10-29 10:33:12 +08:00
unsc9 10ccebb052 test: let detached archive packs land before cleanup 2026-10-29 10:22:14 +08:00
unsc9 173e01030a fix(i18n): align the switch-file confirm with each language's sibling copy 2026-10-29 09:28:32 +08:00
unsc9 ae71cd05e6 test(editor): cover the three no-prompt switch branches 2026-10-29 09:10:44 +08:00
unsc9 50ecb43c54 fix(editor): use switch-specific copy for the draft guard 2026-10-29 09:10:44 +08:00
unsc9 9f92bff245 test: widen the Windows temp-tree cleanup retry budget
The ci-windows lane failed in archive.spec.ts's afterEach with ENOTEMPTY after the test had passed. The same cleanup flaked on 2026-10-15; the existing 10x50 ms retry budget is too short on a loaded runner. Raise it to 30x100 ms; POSIX still succeeds on the first attempt.
2026-10-28 22:32:03 +08:00
unsc9 5981c7f7a3 refactor: share the editor's draft-discard confirm fallback
refreshFile and the in-place file switch used the same three-line no-confirm fallback. Extract it once and keep the fallback semantics unchanged; the comment now says the switch reads the same dirty registry as the close guard, not that the fallback is identical.
2026-10-28 22:06:24 +08:00
unsc9 00553e2484 fix: confirm before in-place file switch drops an unsaved draft
The merged editor mode rewrites the current tab's path, which remounts the viewer and drops a draft that lives only in that instance. Ask the same unsaved-edit guard the tab close uses; re-opening the current path and native-claimed files do not switch this tab and stay prompt-free.
2026-10-28 21:21:58 +08:00
yanzoro926 0659016aee fix(paths): keep the UNC prefix when folding separators
resolveAddressPath() re-spells an address path in the base's separator
style. Folding every separator run into one '\' also folded the UNC share
marker of a \\wsl.localhost\<distro>\... path, turning an absolute network
path into a drive-root-relative one. On Windows the host's requireAbsolute()
then path.resolve()d it onto the host process drive (C:\wsl.localhost\...),
so every file opened from a WSL workspace failed with ENOENT.

Keep exactly the two leading separators of a UNC path and fold only the
rest. Drive paths, POSIX bases and unknown bases are unchanged.

tests/worktree-address.spec.ts pins the UNC absolute, workspace-relative and
forward-slash spellings; the case fails on the previous source and passes
with the fix.
2026-10-28 07:57:53 +00:00
changfenhuang 58310536d6 feat: add GenUI sidechat provider and prepare 0.29.0 (#1075)
Preserve the original provider PR #1033 commits and contributor attribution.
2026-10-28 15:43:25 +08:00
taekchef cd1251be2d feat: prepare Sidebar 0.29.0 GenUI provider release 2026-10-28 14:48:08 +08:00
taekchef a7e39632e3 merge: retain published main metadata for sidechat release 2026-10-28 14:40:13 +08:00
taekchef 60c3fff158 merge: integrate Sidebar provider PR #1033 with current dev 2026-10-28 14:40:13 +08:00
CCColastic cff738b23b fix(sidechat): render and open local source file links 2026-10-28 11:14:56 +08:00
Menghuan1918 b0e0fab50e release: merge dev for v0.28.2 (cold-cwd read fix) 2026-10-27 23:08:25 +08:00
Menghuan1918 e3d32cde42 chore(release): prepare v0.28.2
- bump package.json / dsh.plugin.json / SIDEBAR_SERVICE_VERSION to 0.28.2
- CHANGELOG: v0.28.2 (cold cwd from the stored workspace header) with the
  measured numbers; CHANGELOG_EN mirrors it
- README / README_ZH: install commands and installer args target 0.28.2;
  Recent Updates trimmed to v0.28.2 / v0.28.1 / v0.28.0
- AGENTS + external-plugin-guide: current stable version is v0.28.2
- plan record: 40,157,518-byte session benchmark (1 header read, 0 full
  reads, 3 ms, +0.3 MB RSS; pre-fix 6 calls = 6 full reads, +1.0 GB peak)
2026-10-27 22:58:01 +08:00
Atlas Zeng fcd82267fe Merge pull request #1069 from omdsh-dev/fix/workspace-cwd
fix(host): root a detached session at its stored workspace header, not a full log read
2026-10-27 22:39:41 +08:00
hy5424 c03adfa628 fix: keep a session cwd that is a subdirectory of the repository
pathUnderOf(base, target) answers "is target under base", so the
effectiveBase guard has to be called as (canonicalTop, base). It was
called as (base, canonicalTop), which asks the opposite question and
always fell back to the repository toplevel — every workspace-relative
path opened through the sidebar then resolved one level too high
(deliverable cards reported cannot read ... ENOENT).

Also adds the regression case the suite was missing: a workspace
registered at a plain SUBDIRECTORY of the repository (base != top).
2026-10-27 22:19:32 +08:00
路从今夜白 d953b7c3d5 Merge current dev into maintainer sidechat surface assist candidate
Preserve original contribution and reviewed assist merge; retain PR base dev.
2026-10-27 12:45:46 +08:00
taekchef fc717fbbff merge origin/main into genui-sidechat-surface: keep main's row-level rewrite pass and streaming parse inside the GenUI row component 2026-10-27 11:39:58 +08:00
Menghuan1918 f7a11ddbfe fix(host): root a detached session at its stored header, not a full log read
cwdOf() resolves the cwd for every file/Git route, and a cold (detached)
session paid one host observation per call: sessionQuery.observeSession({
projectionMode: 'all' }) decodes the whole zstd artifact and hydrates every
projection to answer with one workingDirectory string. The 0.28.1
single-flight only covered /sidebar/api, while the real startup fan-out
never goes through it: the fs-watch socket sends one frame PER WATCHED
DIRECTORY (server resolves cwd before it even reads the op), /sidebar/file
and /sidebar/html resolve per resource, upload/write per call. A 39 MB
session was therefore decoded dozens of times in parallel — the 44-read
OOM on 0.28.0 and the 36 reads reported against 0.28.1 are the same path,
not a broken dedupe.

A detached session now resolves through sessionPersistence.stat(), which
reads the first zstd frame only (header-only, never the log), memoized per
session id (headers are immutable) and shared in-flight across concurrent
asks. activeWorktreeRootOf() answers a detached session with that address
and no longer folds the stored log. Once the host attaches the session the
committed working_directory and linked-worktree following resume as before.

Trade-off (documented): until attach, the sidebar roots at the original
project rather than the agent's last directory/worktree.

tests/smoke.spec.ts rewrites the cwd group (header ahead of a stale hint,
one header read per session, 12 concurrent asks share one, stat absent or
failing falls back to the hint, live committed directory wins, relative
header cwd still refused) and tests/active-worktree.spec.ts pins that a
detached session performs no persistence read and no git probe.
2026-10-27 11:36:09 +08:00
Nyarlathoteppppp e88456a2cd fix(markdown): 修复行内链接尖括号目标被追加问号 2026-10-27 12:37:14 +11:00
Atlas Zeng 971a3dc03f Merge pull request #1064 from omdsh-dev/Menghuan1918-patch-4
Update README.md
2026-10-26 20:20:16 +08:00
Atlas Zeng 2bc2fcba78 Replace WeChat QR code image URL
Updated WeChat group QR code in README_ZH.md.
2026-10-26 20:20:12 +08:00
Atlas Zeng 8ae97dec5b Update README.md 2026-10-26 20:19:26 +08:00
Menghuan1918 43db17f23b docs(changelog): include the side-chat changes and credit @NolanHo
#1035 (seed trim on a model switch) and #1044 (local images and deliveries)
merged after v0.28.0 and ship in v0.28.1; the changelog and the release
notes now list them and credit their author.
2026-10-26 18:12:16 +08:00