Codeman 1.29.1: tabs named after their first prompt #438
Ark0N
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Short version: a tab can now name itself after the first thing you ask it, so a strip full of
w1-myapp,w2-myapp,w3-myappreads as what each session is doing. It is off by default, and one switch turns it on for every device.Auto-named sessions. Turn on Auto-name Sessions (App Settings, Appearance, Tabs) and a tab that still carries its generated name takes a title from the first real prompt you submit and keeps the prefix:
w3-myappbecomesw3-myapp: fix the login redirect. The strip shows the title with the prefix in the tooltip, and the next session in that case still counts up tow4-myapp. It happens once per session, only for prompts you type or send through the input API (never a Ralph, respawn, cron or approval answer), and never for shells./clearand friends do not become titles, so the next prompt gets its turn. A name you set yourself, before or after, is never touched. The title comes from the prompt's first sentence and is worked out locally. Nothing leaves the machine.The idea and the ownership plumbing came from @shenlvkang-collab (#376). I finished the review round myself so it could ship: first prompt only, user input only, the prefix form, and a keystroke tracker that copes with a bare Esc, pasted newlines, wheel reports and history recall instead of mis-titling the tab. If you drive workers from an agent, this already covers them, because the prompt an orchestrator sends through the input API names the worker's tab too.
Release notes: https://github.com/Ark0N/Codeman/releases/tag/codeman@1.29.1
Thanks @shenlvkang-collab.
All reactions