Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ agent in one session list, read, type into and wait on the others.
Runs on macOS, Linux and Windows 10 (1809+) / 11. Needs Java 25+ and Maven 3.6.3+.
Tested on macOS and Windows 11 with JDK 26, and on Ubuntu 24.04 with JDK 25 and Maven 3.8.

A native macOS port in Swift and AppKit lives in its own repo,
[microhm-appkit](https://github.com/ghosthack/microhm-appkit). It keeps copies of the
phone page, its tests and the icon from this repo; change those files here.

## Features

- **Sidebar.** Sessions with their state (working, waiting for input, idle, dead), sort by
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/resources/web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ let sessions = []; // running, from the server
let ended = []; // saved sessions that are not running
let renderedList = null;
const screens = new Map(); // the last screen seen of each session, shown at once on return
const startedAs = new Map(); // names given in the New form, shown until the server's views arrive
let listTimer = null;
let stream = null;
let current = null; // the session being shown
Expand Down Expand Up @@ -396,7 +397,7 @@ function showSession(name) {
show("session-view");
problem("session-problem", "");
const known = screens.get(name) || sessions.find((s) => s.name === name);
$("session-title").textContent = known ? (known.display || known.name) : name;
$("session-title").textContent = known ? (known.display || known.name) : (startedAs.get(name) || name);
setSessionState(known ? known.state : "");
drawnStyled = null;
$("scroller").style.background = "";
Expand Down Expand Up @@ -1153,6 +1154,7 @@ async function startSession(event) {
$("new-prompt").value = "";
// the reply reads "<name> started (...)"; the session takes the form's place in history
const started = result.text.split(" ")[0];
if (name) startedAs.set(started, name);
replaceView("s=" + encodeURIComponent(started));
} catch (e) {
failed("new-problem", e);
Expand Down
5 changes: 0 additions & 5 deletions swift/.gitignore

This file was deleted.

49 changes: 0 additions & 49 deletions swift/PORTING.md

This file was deleted.

35 changes: 0 additions & 35 deletions swift/Package.swift

This file was deleted.

60 changes: 0 additions & 60 deletions swift/README.md

This file was deleted.

Loading
Loading