claude-remote-cli 3.3.3 → 3.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/sessions.js +1 -1
- package/dist/server/ws.js +5 -5
- package/package.json +1 -1
package/dist/server/sessions.js
CHANGED
|
@@ -295,7 +295,7 @@ async function fetchMetaForSession(session) {
|
|
|
295
295
|
if (branch) {
|
|
296
296
|
try {
|
|
297
297
|
const pr = await getPrForBranch(repoPath, branch);
|
|
298
|
-
if (pr) {
|
|
298
|
+
if (pr && pr.state === 'OPEN') {
|
|
299
299
|
prNumber = pr.number;
|
|
300
300
|
additions = pr.additions;
|
|
301
301
|
deletions = pr.deletions;
|
package/dist/server/ws.js
CHANGED
|
@@ -147,18 +147,18 @@ function setupWebSocket(server, authenticatedTokens, watcher, configPath) {
|
|
|
147
147
|
ptySession._renameBuffer = '';
|
|
148
148
|
const enterIndex = str.indexOf('\r');
|
|
149
149
|
if (enterIndex === -1) {
|
|
150
|
-
//
|
|
150
|
+
// Buffer without passthrough — don't echo to PTY during buffering.
|
|
151
|
+
// Previously we wrote to PTY here for echo and used Ctrl+U to undo on Enter,
|
|
152
|
+
// but Ctrl+U doesn't work reliably in Claude Code's Ink/React TUI.
|
|
151
153
|
ptySession._renameBuffer += str;
|
|
152
|
-
ptySession.pty.write(str);
|
|
153
154
|
return;
|
|
154
155
|
}
|
|
155
|
-
// Enter detected —
|
|
156
|
+
// Enter detected — send rename prompt + full message to PTY in one shot
|
|
156
157
|
const buffered = ptySession._renameBuffer;
|
|
157
158
|
const beforeEnter = buffered + str.slice(0, enterIndex);
|
|
158
159
|
const afterEnter = str.slice(enterIndex); // includes the \r
|
|
159
160
|
const renamePrompt = `Before doing anything else, rename the current git branch using \`git branch -m <new-name>\`. Choose a short, descriptive kebab-case branch name based on the task below.${ptySession.branchRenamePrompt ? ' User preferences: ' + ptySession.branchRenamePrompt : ''} Do not ask for confirmation — just rename and proceed.\n\n`;
|
|
160
|
-
|
|
161
|
-
ptySession.pty.write(clearLine + renamePrompt + beforeEnter + afterEnter);
|
|
161
|
+
ptySession.pty.write(renamePrompt + beforeEnter + afterEnter);
|
|
162
162
|
ptySession.needsBranchRename = false;
|
|
163
163
|
delete ptySession._renameBuffer;
|
|
164
164
|
if (configPath)
|