Repository navigation
[dsh-tui / Termux] Every prompt fails: "rename is not defined" in dsh-session-persistence-jsonl (0.2.2-rc.2) #13241
sameepvicky
started this conversation in
General
Replies: 1 comment
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
[dsh-tui / Termux] Every prompt fails: "rename is not defined" in dsh-session-persistence-jsonl (0.2.2-rc.2)
Environment
0.2.2-rc.2dsh-tuidsh --profile dsh-tuiv26.13.1Description
The DSH TUI launches successfully and displays the prompt input
normally. However, sending any message causes the turn to fail
immediately.
For example, sending:
produces this error in the TUI:
This happens with ordinary prompts, making the TUI unusable for new
sessions.
The
renamein this error is not related to a session-renamingoperation. The failure occurs immediately after sending the first
message, before any rename action is performed.
Root cause
A source-level investigation of the installed DSH packages points to a
defect in:
@deepseek-ai/dsh-session-persistence-jsonl/lib/index.jsThe compiled JavaScript imports
linkfromnode:fs/promises, but doesnot import or otherwise define
rename.However,
materializePosix()calls:at approximately line 3234.
Because
renamehas no binding in scope, Node.js throws:The corresponding TypeScript source (
src/index.ts) appears to use:This suggests that the published compiled JavaScript is inconsistent
with its TypeScript source. The error displayed by the TUI is the
exception message; the underlying exception is a
ReferenceError.Impact
The failing code is reached during the first persistence write of a new
session. Consequently, the first user message cannot be persisted and
the turn fails.
The source-level findings suggest that this may affect new sessions on
POSIX systems, including Termux. I have reproduced it on Termux.
Evidence
The following diagnostic evidence is available:
immediately after sending
hello.comparison between the compiled JavaScript and TypeScript source.
renamereference.created; the inspected session directories contain
session.lockfiles.
I can attach the screenshots and diagnostic report to this discussion.
Questions
0.2.2-rc.2?I have made other local modifications to my DSH installation related to the web addon and flock/koffi issues. I have not intentionally modified the installed @deepseek-ai/dsh-session-persistence-jsonl package as part of investigating this persistence error. The diagnostic report's statement that no fix has been applied refers specifically to this persistence issue.
All reactions