Repository navigation
WIP: history list stays cleared after -c (#614) - #618
Conversation
Rubash master 0e9f8d45 rolls up the issue-clearance wave-1 merges through rubash#1827 and rubash#1836; the latter's new stacker dependency (plus psm) enters the root Cargo.lock with this bump.
-c emptied the reader, but the file deliberately keeps the cleared lines until the session-end write (#569) and reedline's sync/refresh merges the whole file back into the reader — so the first list query after any later append resurrected the entire pre-clear list. GNU lists only the post-clear lines. Apply the filed clear-generation/filter direction in the session ledger shared by the provider and editor instances: -c records the raw list length at clear time as a hidden prefix and bumps the view generation; list queries (search/count/load) apply the latest generation and answer from the suffix past the prefix, with ids re-based onto the view. An explicit re-read (-r/-n) or an authoritative replace ends the hide (GNU -r loads the file back on purpose; the bash-it -c && -r cycle depends on it), while the -a accounting rebuild keeps it. The file face and the #569 ledger/sync semantics are untouched: all internal flush/save paths still read the raw reader directly. Pins: three lib tests (resurrection grid over the twin instances, dual-session interleave, -r restoration) and a pty suite asserting the builtin's list through history > file redirects.
集成证据(主会话合并裁定用)
|
…t-view # Conflicts: # scripts/release/rubash-pin.json
Integration refresh riding the niubash#618 merge-up onto niubash master d7dcce5 (after #615). Rolls up rubash#1848 (unused-parens lint fix), rubash#1850 (#1807/#1832 exec seams), rubash#1855 (stacker target gating - unbreaks the aarch64-unknown-linux-ohos cross-target check) and rubash#1857 (#1852/#1854). Root Cargo.lock refreshed against the new pin and verified byte-identical (no dependency-set change in this range: #1855 only re-gates stacker by target expression); cargo check --workspace --locked rc=0 in the build slot.
集成接棒证据(2026-10-27,主会话派单)集成结果:merge niu master 双边保全(逐行核):
pin:独立 commit 本地门(构建槽/JOBS=1/净化 env):build rc=0;issue614 PTY 两钉、issue569/570/571、issue182、tests/interactive 全 rc=0;lib 全量 591 过 / 21 败,失败集与 pristine master CI(run 40491701924):cross-check 双平台、全部 cross-target(含 ohos 过——rubash #1855 门控坐实)、API ledger 全绿;build-and-test lib 649 过 / 8 败,8 条与已裁定 runner 环境集逐名全等(7× plugins |
…t statement (pathmatrix ruling (a)) (#619) * chore(pin): bump rubash pin to ab2372f6 (master through rubash#1855) + refresh root Cargo.lock for stacker Pin refresh on the namespace-bridge exclusion line (pathmatrix final ruling 2026-10-27 item (a)). Rolls up the rubash master wave merged since 8fffc99e; the lock delta is the stacker target gate (rubash#1855): stacker 0.1.25 + psm + object + ar_archive_writer enter the root lock. The lock was bumped BY HAND (pure +42/-0): cargo update -p rubash re-resolves the subtree and rewires windows-sys refs off 0.61.2, which the CI comment on this file's workflow warns drops the patched crate's target-specific windows-sys features (E0432 CreateFileW). Verified with scripts/release/verify-rubash-pin.py against a clean ab2372f6 checkout: matches the pin (v1.4.3). The bridge exclusion itself (rubash PR #1856) lands on rubash master separately and enters this pin with the next bump after it merges; niubash CI compiles rubash master HEAD, so CI behaviour follows the merge without waiting for the release pin lane. * docs(path-contract): namespace bridges stand outside the translation boundary windows-path-contract.md, Shell Namespace Ownership: state the pathmatrix ruling (a) property — wsl and the OpenSSH client family (ssh/scp/sftp) receive every argument byte-for-byte verbatim (no root map, no drive-form rewrite, no /dev/null rewrite), because their argv is interpreted inside another filesystem namespace. Points at the Rubash pins (is_namespace_bridge_program, pathmatrix_bridge_*). * chore(pin): bump rubash pin to a268db28 (master through rubash#1856) — integration refresh onto niubash master d7dcce5; root Cargo.lock unchanged (rubash deps identical across ab2372f6..a268db28) * chore(pin): integration addendum — second merge-up onto niubash master 87a3b70 (after #618); pin unchanged at a268db28 * chore(pin): integration addendum 2 — third merge-up onto niubash master 49b391b (after #617); pin unchanged at a268db28 --------- Co-authored-by: 曹梦轩 <[email protected]>
Fixes #614
会话内
history列表在history -c后复活已清行(列表面)。机制:-c 按 #182/#569 的口径不动文件、清行留待会话终写移除,但 reedline 的 sync/refresh 每次都把文件全量并回 reader,于是 -c 后任何一次追加触发的 refresh 都把清前行整表带回列表。处置(按立案的代次/过滤方向):SessionLedger 增 view 代次——-c 记录清时 raw 列表长度为隐藏前缀,两个实例(provider/editor)在回答列表查询前应用最新代次、把前缀从视图中扣除;显式 -r/-n 重读与权威 replace 消费该代次(GNU -r 把文件读回列表、bash-it
-c && -r循环依赖于此)。文件面与 #569 的 ledger/sync 语义不动。含 chore(pin):rubash pin 升至 0e9f8d45 + 根 Cargo.lock 刷新(stacker 入锁)。
门与证据随 REPORT 回填中。