편집자 노트

会话回退

DeepSeek Harness Web

이것은 DeepSeek Harness(DSH) 플러그인입니다. 이 사이트는 GitHub README, 설치 정보, 유지보수 상태, 공개 보안 시그널을 모아 보여줍니다.

업스트림에서 중국어 README를 제공하지 않아 저장소 원본 내용을 표시합니다.

dsh-conversation-rewind

Same-Session, append-only conversation rewind and safe user-message editing for the DeepSeek Harness web UI.

中文说明 · DSH plugins

Features

  • Adds an Edit history message action directly beside Copy under each editable user message, plus a Rewind conversation view.
  • Rewinds inside the original Session: the Session ID and browser URL stay unchanged, and no child Session is created.
  • Uses DSH Surface replacement metadata to hide the selected message, its old reply, and the later active path from both the current transcript and future model context.
  • Keeps the durable event log append-only. Historical events are retained for audit/recovery; the plugin appends a replacement marker instead of rewriting or deleting them.
  • Sends the edited text as a real new user turn so the assistant response is regenerated.
  • Offers truncate and preserve handling for later user messages.
  • Permanently guards its internal rewind trigger so it is cancelled before provider dispatch, including orphan recovery after a restart.

Same-Session semantics

  1. The plugin validates a completed, replay-safe user turn and rechecks the live Session before committing.
  2. A guarded internal turn appends a DSH SurfaceOp replacement over the selected message through the current active tail.
  3. The internal trigger and shadowed path never enter the provider request.
  4. After that internal turn is fully idle, the edited message is queued as an ordinary user turn in the same Session.
  5. The new message and response are append-origin events, so the edited message can be edited again later.

The cascade modes control what is queued after the replacement:

  • truncate — send only the edited message and continue from there.
  • preserve — send the edited message, then re-send each later ordinary plain-text user message in order. Historical assistant replies are not copied.

Safety boundaries

Only a completed turn containing exactly one direct, ordinary, plain-text user message is editable. Current injected context that precedes the target stays on the original Surface; context after the target must be a Host-owned regenerated system snapshot or skill catalog. Targets with attachments, non-text blocks, multiple direct user messages, an open/running turn, ambiguous inbox history, or unsafe later turns are hidden or rejected.

Editing currently requires the Session to be live in this DSH process. The operation fails closed if the Surface or inbox changes concurrently. A partial-result error identifies the original Session and replacement event if the Surface replacement committed but a later checkpoint failed.

Rewind changes conversation history only. It does not restore workspace files or reverse tool calls, commands, network requests, or any other external side effects.

Requirements

  • DeepSeek Harness >=0.1.0-rc.6
  • Node.js ^22.19 or >=24
  • DSH Web profile

Install

dsh plugin --profile web add \
  https://github.com/DTSFO/dsh-conversation-rewind/archive/refs/tags/v0.1.2.tar.gz
dsh web

Remove with:

dsh plugin --profile web remove dsh-conversation-rewind

Use

  1. Open a completed Session in DSH Web.
  2. Click Edit history message beside Copy under the target user message, or open the Rewind view.
  3. Revise the text and choose Restart here or Replay later messages.
  4. Click Save and regenerate. The same Session stays open while the old path is hidden and the edited path is generated.

Development and testing

pnpm install
pnpm run check
dsh plugin --profile web add /absolute/path/to/dsh-conversation-rewind
dsh web

pnpm run check runs TypeScript checks, ESLint, unit tests, and the production build.

Known limitations

  • Editing is deliberately limited to replay-safe, single-message, plain-text user turns.
  • preserve reproduces later user inputs, not historical assistant responses or original timing.
  • The Session must be open and live in the current Host process.
  • Workspace and external side effects are not rewound.
  • This release targets the DSH Web UI and DSH 0.1.0-rc.6 APIs.

MIT

REPOSITORY SIGNALS

보안 및 설치 증거

이 점수는 공개 저장소 메타데이터와 이 사이트에 등록된 설치 증거에만 기반하며, 코드 보안 감사와 다릅니다.

출처 추적 가능

공개 플러그인 카탈로그에서 왔으며, 공개 GitHub 저장소로 연결됩니다.

라이선스

저장소가 MIT 라이선스를 선언했습니다.

유지보수 활동

최근 180일 내 코드 업데이트가 있습니다.

설치 증거

재현 가능한 정확한 설치 메타데이터가 아직 등록되지 않았습니다. 저장소 설명에 따라 직접 확인하세요.

설치 라이프사이클 스크립트

검사한 패키지 메타데이터에 설치 라이프사이클 스크립트가 선언되지 않았습니다.