feat(input-prompt-prefix): IInput.SetPrompt — styled editor prompt prefix#11
Merged
Conversation
…tions 1+2)
- 1.1 Add SetPrompt(Line) and SetPrompt(string) to IInput; doc null/empty clears, no InputChanged
- 1.2 Implement both overloads on InputSurface via SetPromptCommand
- 1.3 Remove Prompt deferral bullet from InputSurface documented gaps
- 2.1 Add SetPromptCommand : ILoopCommand mirroring SetTextCommand
- 2.2 Add _prompt field and SetPrompt(Line) mutator to TextBuffer
- 2.3 Render prefix on first visual row; caret offset by promptWidth on row 0;
first-row capacity = width - promptWidth; continuation rows at column 0;
prefix never enters buffer content
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…n 3) - 3.1 Prefix renders before editable text on the first row - 3.2 Caret parks after prefix when buffer is empty - 3.3 No prompt → v1 regression guard - 3.4 Prompt persists across Clear() calls - 3.5 InputSubmitted payload excludes prompt prefix - 3.6 First-row wrapping uses width - promptWidth; continuation row at col 0 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- 4.1 Add SetPrompt("❯ ") to Dcli.Demo tour; clear with SetPrompt("") in finale
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- 5.1 dotnet build clean (0 warnings, 0 errors) - 5.2 dotnet test all green (890 passed) - 5.3 dotnet format --verify-no-changes clean - 5.4 openspec validate input-prompt-prefix --strict passes - 5.5 version bump 0.2.0-rc.5 → 0.2.0-rc.6 in Dcli and Dcli.Testing - 5.6 CHANGELOG updated with IInput.SetPrompt surface - 5.7 DEVLOG updated (all sections complete) - 5.8 dmon coordination noted (informational, no code change) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sync the 'Input editor prompt prefix' requirement (6 scenarios) into the main openspec/specs/fixed-region/spec.md and move the completed change to openspec/changes/archive/2026-06-19-input-prompt-prefix/. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
IInput.SetPrompt(Line)andIInput.SetPrompt(string)to the public surface, letting consumers pin a styled prefix glyph (e.g.❯) before the editable region of the input editorInputChangedpayloads, and input history contain only user-typed textClear()until explicitly changed or cleared0.2.0-rc.5→0.2.0-rc.6openspec/specs/fixed-region/spec.mdupdated with the new requirementTest plan
dotnet test) — all existing tests green, 6 new integration tests viaHeadlessTerminaldotnet buildclean (0 warnings, analyzers/warnings-as-errors)dotnet format --verify-no-changescleanSetPrompt("❯ ")end-to-end🤖 Generated with Claude Code