mini-coder 0.5.2 → 0.5.4

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/src/ui/help.ts CHANGED
@@ -79,9 +79,11 @@ export function buildHelpText(state: HelpRenderState): string {
79
79
  const providerNames = Array.from(state.providers.keys());
80
80
  lines.push("");
81
81
  lines.push("Note:");
82
- lines.push(" While a turn is running, Escape blurs the input first.");
83
- lines.push(" Tab re-focuses the input.");
84
- lines.push(" Escape again interrupts the current turn.");
82
+ lines.push(
83
+ " Escape closes the current overlay and returns focus to the input.",
84
+ );
85
+ lines.push(" With no overlay open, Escape interrupts the current turn.");
86
+ lines.push(" Otherwise Escape does nothing.");
85
87
 
86
88
  lines.push("");
87
89
  lines.push(
package/src/ui.ts CHANGED
@@ -572,7 +572,6 @@ function renderConversationLog(state: AppState, width: number): Node {
572
572
  flex: 1,
573
573
  gap: CONVERSATION_GAP,
574
574
  overflow: "scroll",
575
- scrollbar: true,
576
575
  justifyContent: state.messages.length === 0 ? "center" : undefined,
577
576
  scrollOffset: stickToBottom ? Infinity : scrollOffset,
578
577
  onScroll: (offset, maxOffset) => {
@@ -631,8 +630,13 @@ export function renderBaseLayout(
631
630
  onSuspend?.();
632
631
  return;
633
632
  }
634
- if (key === "escape" && state.running) {
635
- if (state.abortController) state.abortController.abort();
633
+ if (key === "escape") {
634
+ if (state.running) {
635
+ inputFocused = true;
636
+ if (state.abortController) {
637
+ state.abortController.abort();
638
+ }
639
+ }
636
640
  return;
637
641
  }
638
642
  return false;