mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-24 06:39:33 +01:00
Merge master into feat/story-mode
Conflicts were additive registrations (types barrel, routes barrel, server, index.html, settings keys, docs) plus three in session.ts: - master's public claudeConfigDir() method replaces the branch's getter; Story Mode's route now calls it. - writeViaMux keeps master's guarded-turn structure; the composer pairing (_notePastedPrompt) runs after _verifySubmitted in _writeViaMuxNow. - the imports keep both sides. Master now pastes a multi-line API prompt with its line breaks, so _verifySubmitted keeps them too (the same text TmuxManager.sendInput pastes): a prompt Claude Code shows as "[Pasted text #1 +3 lines]" is recognised by its line count, and the CLAUDE.md gotcha no longer says it is missed. The changeset and Settings Reference describe the three reading levels and the prompt bar. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
commit
a516a3d106
775 files changed
+168958
-7674
No files matched your search
@@ -347,6 +347,20 @@ describe('Session: a composer send is checked like any other prompt', () => {
|
||||
expect(muxEnters).toBe(0);
|
||||
});
|
||||
|
||||
it('an API prompt of several lines is recognised by the stand-in Claude Code draws for it', async () => {
|
||||
screen = pane('❯\xa0[Pasted text #1 +3 lines]');
|
||||
const session = makeSession();
|
||||
// One sendInput call carries the text and its Enter; a bare `\r` is a re-press.
|
||||
await session.writeViaMux('\nfirst of four\nsecond of four\nthird of four\nfourth of four\r');
|
||||
expect(muxEnters).toBe(0);
|
||||
await vi.advanceTimersByTimeAsync(2_000);
|
||||
expect(muxEnters).toBe(1);
|
||||
// A stand-in for another line count is someone else's paste: the check ends there.
|
||||
screen = pane('❯\xa0[Pasted text #2 +5 lines]');
|
||||
await vi.advanceTimersByTimeAsync(120_000);
|
||||
expect(muxEnters).toBe(1);
|
||||
});
|
||||
|
||||
it('typing in the terminal arms nothing', async () => {
|
||||
screen = pane('❯\xa0hi');
|
||||
const session = makeSession();
|
||||
|
||||
Reference in new issue
Block a user