Changesets · Branches · Tags · Compare
| Changeset | 44e0052ed627ee27b785a7c59ec4d359e506d8198756dc5d27016d64667b9beb |
|---|---|
| Author | Nate Sesti <33237525+sestinj@users.noreply.github.com> · 2025-09-08 22:21 -07:00 |
| Committer | GitHub <noreply@github.com> · 2025-09-08 22:21 -07:00 |
| Parents | 10d1431e9a2f, c45ea9d9df0e |
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 @@ | ||
| 4 | 4 | // Array of helpful tips for Continue CLI users |
| 5 | 5 | const CONTINUE_CLI_TIPS = [ |
| 6 | 6 | "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", | |
| 8 | 8 | "Use arrow keys (↑/↓) to navigate through your input history", |
| 9 | 9 | 'Multi-line input is supported by typing "\\" and pressing enter', |
| 10 | 10 | "Use `cn ls` or `/resume` to resume a previous conversation", |
modified extensions/cli/src/ui/UserInput.tsx +1 −1
| @@ -27,7 +27,7 @@ | ||
| 27 | 27 | if (!wasInterrupted) return null; |
| 28 | 28 | return ( |
| 29 | 29 | <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> | |
| 31 | 31 | </Box> |
| 32 | 32 | ); |
| 33 | 33 | }; |
modified extensions/cli/src/ui/__tests__/TUIChat.interruption.minimal.test.tsx +11 −11
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | import { render } from "ink-testing-library"; |
| 2 | 2 | import React from "react"; |
| 3 | -import { vi, expect, describe, it, beforeEach, afterEach } from "vitest"; | |
| 3 | +import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; | |
| 4 | 4 | |
| 5 | 5 | import { UserInput } from "../UserInput.js"; |
| 6 | 6 | |
| @@ -32,8 +32,8 @@ | ||
| 32 | 32 | // Initial render - no interruption message |
| 33 | 33 | let frame = lastFrame(); |
| 34 | 34 | 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"); | |
| 37 | 37 | |
| 38 | 38 | // Re-render with wasInterrupted: true |
| 39 | 39 | rerender( |
| @@ -49,8 +49,8 @@ | ||
| 49 | 49 | // Should show interruption message |
| 50 | 50 | frame = lastFrame(); |
| 51 | 51 | 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"); | |
| 54 | 54 | } finally { |
| 55 | 55 | unmount(); |
| 56 | 56 | } |
| @@ -74,8 +74,8 @@ | ||
| 74 | 74 | // Initial render - should show interruption message |
| 75 | 75 | let frame = lastFrame(); |
| 76 | 76 | 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"); | |
| 79 | 79 | |
| 80 | 80 | // Re-render with wasInterrupted: false |
| 81 | 81 | rerender( |
| @@ -91,8 +91,8 @@ | ||
| 91 | 91 | // Should not show interruption message |
| 92 | 92 | frame = lastFrame(); |
| 93 | 93 | 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"); | |
| 96 | 96 | } finally { |
| 97 | 97 | unmount(); |
| 98 | 98 | } |
| @@ -177,10 +177,10 @@ | ||
| 177 | 177 | let foundInputBoxLine = -1; |
| 178 | 178 | |
| 179 | 179 | frameLines.forEach((line, index) => { |
| 180 | - if (line.includes("⚠ Interrupted by user")) { | |
| 180 | + if (line.includes("Interrupted by user")) { | |
| 181 | 181 | foundInterruptionLine = index; |
| 182 | 182 | } |
| 183 | - if (line.includes("●") && line.includes("▋")) { | |
| 183 | + if (line.includes("●") || line.includes("▋")) { | |
| 184 | 184 | foundInputBoxLine = index; |
| 185 | 185 | } |
| 186 | 186 | }); |