Elffuss BraidHub

kikocis/continue public

Merge pull request #7643 from continuedev/dallin/enter-to-continue

feat: cli: press enter to continue 
Changeset44e0052ed627ee27b785a7c59ec4d359e506d8198756dc5d27016d64667b9beb
AuthorNate Sesti <33237525+sestinj@users.noreply.github.com> · 2025-09-08 22:21 -07:00
CommitterGitHub <noreply@github.com> · 2025-09-08 22:21 -07:00
Parents10d1431e9a2f, c45ea9d9df0e

Browse the files at this changeset

4 files changed

modified extensions/cli/package-lock.json +0 −0

Not shown: the file is larger than the hub shows, or this page holds as much as it shows. View the file.

modified extensions/cli/src/ui/TipsDisplay.tsx +1 −1
@@ -4,7 +4,7 @@
44 // Array of helpful tips for Continue CLI users
55 const CONTINUE_CLI_TIPS = [
66 "Use `/help` to learn keyboard shortcuts",
7- "Press escape to pause cn, and press enter to resume",
7+ "Press escape to pause cn, and press enter to continue",
88 "Use arrow keys (↑/↓) to navigate through your input history",
99 'Multi-line input is supported by typing "\\" and pressing enter',
1010 "Use `cn ls` or `/resume` to resume a previous conversation",
modified extensions/cli/src/ui/UserInput.tsx +1 −1
@@ -27,7 +27,7 @@
2727 if (!wasInterrupted) return null;
2828 return (
2929 <Box paddingX={1} marginBottom={0}>
30- <Text color="yellow">⚠ Interrupted by user - Press enter to resume</Text>
30+ <Text color="yellow">Interrupted by user - Press enter to continue</Text>
3131 </Box>
3232 );
3333 };
modified extensions/cli/src/ui/__tests__/TUIChat.interruption.minimal.test.tsx +11 −11
@@ -1,6 +1,6 @@
11 import { render } from "ink-testing-library";
22 import React from "react";
3-import { vi, expect, describe, it, beforeEach, afterEach } from "vitest";
3+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
44
55 import { UserInput } from "../UserInput.js";
66
@@ -32,8 +32,8 @@
3232 // Initial render - no interruption message
3333 let frame = lastFrame();
3434 expect(frame).toBeDefined();
35- expect(frame).not.toContain("⚠ Interrupted by user");
36- expect(frame).not.toContain("Press enter to resume");
35+ expect(frame).not.toContain("Interrupted by user");
36+ expect(frame).not.toContain("Press enter to continue");
3737
3838 // Re-render with wasInterrupted: true
3939 rerender(
@@ -49,8 +49,8 @@
4949 // Should show interruption message
5050 frame = lastFrame();
5151 expect(frame).toBeDefined();
52- expect(frame).toContain("⚠ Interrupted by user");
53- expect(frame).toContain("Press enter to resume");
52+ expect(frame).toContain("Interrupted by user");
53+ expect(frame).toContain("Press enter to continue");
5454 } finally {
5555 unmount();
5656 }
@@ -74,8 +74,8 @@
7474 // Initial render - should show interruption message
7575 let frame = lastFrame();
7676 expect(frame).toBeDefined();
77- expect(frame).toContain("⚠ Interrupted by user");
78- expect(frame).toContain("Press enter to resume");
77+ expect(frame).toContain("Interrupted by user");
78+ expect(frame).toContain("Press enter to continue");
7979
8080 // Re-render with wasInterrupted: false
8181 rerender(
@@ -91,8 +91,8 @@
9191 // Should not show interruption message
9292 frame = lastFrame();
9393 expect(frame).toBeDefined();
94- expect(frame).not.toContain("⚠ Interrupted by user");
95- expect(frame).not.toContain("Press enter to resume");
94+ expect(frame).not.toContain("Interrupted by user");
95+ expect(frame).not.toContain("Press enter to continue");
9696 } finally {
9797 unmount();
9898 }
@@ -177,10 +177,10 @@
177177 let foundInputBoxLine = -1;
178178
179179 frameLines.forEach((line, index) => {
180- if (line.includes("⚠ Interrupted by user")) {
180+ if (line.includes("Interrupted by user")) {
181181 foundInterruptionLine = index;
182182 }
183- if (line.includes("●") && line.includes("▋")) {
183+ if (line.includes("●") || line.includes("▋")) {
184184 foundInputBoxLine = index;
185185 }
186186 });