Repository navigation
Conversation
Every dev server prints its address differently, and you scroll back to
find it. Codec knows the processes under each pane's shell, and the
kernel says which TCP sockets they listen on, so the terminal can tell.
- The status bar shows a chip for the focused pane's ports. A click opens
the port in the browser, at the address the program printed for it when
it printed one; several ports make a menu.
- The right sidebar gets a Ports tab beside Commands (⇧⌘O), listing what
listens in every pane of every window, with the way to each pane. A
process can be given a name there ("Storefront"), which stands in for
its program wherever the port shows, for as long as it runs.
- Window › Listening Ports and the command palette list the same ports.
- A running command's row in the Commands sidebar says what it's
listening on, the tab's tooltip lists the ports, and the question asked
before closing names the listener.
- A command that fails because its port is taken says which pane's
program has it, with Go to Pane, in its row and its output viewer; and
Explain is told.
Ports are found by walking the shell's descendants, not only its
children, since `npm run dev` puts Node two levels down, and reading
their sockets with proc_pidinfo: nothing is run. Panes look a couple of
seconds after a command starts, within a second of anything printed, and
every few seconds otherwise.
The Commands header drops its title, which the tab above it now says, and
the tab bar's sidebar button reopens the right sidebar on the tab it was
last on. The screenshot tour can retake chosen shots alone
(CODEC_SHOT=hero,ports), and names its clone's branch main so a feature
branch doesn't show in the hero shot.
Closes #19.
Co-Authored-By: Claude Fable 5.2 <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.
Closes #19.
Summary
Codec asks the kernel which TCP ports the processes under each pane's shell listen on, and shows them wherever they help.
Where the ports show:
Differences from the issue: descendants rather than children; a rescan on any output rather than on
listen/port/http://; the Ports tab, process names and the Window menu came up while trying it.Evidence
Before: no port anywhere in the window; a refused
npm run devshowed only its last line.After: the chip and "Listening on" row, the refused command naming its holder, and the Ports tab:
Tests: 592 pass locally (
swift test -j 2), 24 of them new: real shells withnclistening, a second pane refused the port, the Ports tab across two windows, naming, the menus and palette; port and address parsing against the messages of Node, Go, Python, Ruby, Rust, Java, nginx, Flask and Django.Release build:
ARCHS="arm64 x86_64" scripts/build-app.sh releasebuilds (x86_64 arm64).Not clicked by hand: the Ports tab's hover buttons, its right-click menu and typing a name in the running app; they're covered by tests and a capture of the editor.
Merge Danger
Door: two-way
Nothing stored changes shape: the timeline's new
portConflictis optional, so saved panes from before still load, and reverting only drops it. One new saved key,InspectorTab.Blast Radius: sidebar
proc_pidinfocalls every 3 seconds (one call while its shell has started nothing).hero.png,commands.pngandusual-duration.pngwere retaken for the new sidebar.recordsEachCommandWithItsOutputis flaky onmainalready (4 of 20 runs there): the test types ahead of the prompt. Not changed here.🤖 Generated with Claude Code