From 03d9e882617ff592b6cebb0372285ebe5688c5c4 Mon Sep 17 00:00:00 2001 From: Advait Jayant Date: Fri, 26 Jun 2026 15:26:03 +0100 Subject: [PATCH] debrand: rewrite the resume/-c hints to 'ghost' (drop the -p suffix) The session-quit hint printed 'hermes --resume -p uncensored', which is wrong twice over: it names the upstream command, and the ghost launcher already adds -p, so copy-pasting it double-flags and fails. Earlier I patched this live only, but reinstalls re-fork the engine and clobber live edits -- so add the rewrites to debrand.py: hermes->ghost on the resume/-c hints, and strip the {profile_flag}/-p suffix (ghost supplies the profile). Applied to the live fork too. --- scripts/debrand.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/debrand.py b/scripts/debrand.py index 22fe14b..b8154d4 100755 --- a/scripts/debrand.py +++ b/scripts/debrand.py @@ -26,6 +26,15 @@ ("Hermes CLI", "Ghost CLI"), ("chat with Hermes", "chat with Ghost"), ("[Hermes #", "[Ghost #"), + # Resume / -c hints: show the `ghost` command (not `hermes`), and drop the `-p ` + # suffix the upstream hint appends -- the ghost launcher adds the profile itself, so keeping + # it would double the flag and break copy-paste resume. Profile-flag forms first, then general. + ("hermes --resume {self.session_id}{profile_flag}", "ghost --resume {self.session_id}"), + ('hermes -c \\"{session_title}\\"{profile_flag}', 'ghost -c \\"{session_title}\\"'), + ("hermes --tui --resume ", "ghost --resume "), + ("hermes --tui -c ", "ghost -c "), + ("hermes --resume ", "ghost --resume "), + ("hermes -c ", "ghost -c "), ] # The block-letter title + the figure art (defined as `NAME = """..."""` constants,