Merge lane-chat4: keep run-title readability and the waiting human decision

Merge lane-chat4 (d13f359, "make a run's title readable: whole in the run
view, two lines in the list") into main (cd87982, "answer a run's waiting
human decision from the phone"). Both intents are kept.

Conflict resolution:
- android/README.md (the only conflicted path): kept both sections, HEAD's
  "Answer a waiting human decision from the phone" first and lane-chat4's
  "Run title readability" second, with nothing removed. Each heading appears
  exactly once.
- StageDetailPane.kt and RunDetailScreen.kt were changed on both sides and
  auto-merged: the staged tree carries the incoming title line budgets plus
  the local DecisionPrompt wiring (the stage pane surfaces a decision only
  for its own stage; the run detail surfaces it above the tabs).
- The remaining incoming files (RunIdentity.kt, RunHistoryScreen.kt,
  RunIdentityTest.kt, RunTitlesTest.kt) and the local files are one-sided and
  taken whole. The staged tree differs from HEAD by exactly the incoming
  diff and from MERGE_HEAD by exactly the local diff, so no side was dropped
  or duplicated.

Checks (JDK 17, ANDROID_HOME=/Users/alan/Library/Android/sdk, Gradle 9.7.1
--no-daemon --offline):
- gradle :app:testDebugUnitTest :app:assembleDebug -> BUILD SUCCESSFUL.
- 59 result XMLs aggregate to 530 tests, 0 failures, 0 errors, 0 skipped;
  RunTitlesTest 4/0 and RunIdentityTest 6/0.
No conflict markers remain.

Staleness check: the incoming work is android/-only. android/README.md is
the topic doc and now carries both sections; no packaged template, the repo
README, the other topic docs, or the packaged authoring skill references
describe this run-title UI, so none needed updating (the delivery reference's
Android build/publish example is unchanged and still accurate).
This commit is contained in:
2026-10-17 16:00:11 +01:00
7 changed files with 143 additions and 4 deletions
+50
View File
@@ -6009,3 +6009,53 @@ surface" named in the brief is not present in this tree, so the decision is
reachable from the run detail and its stage and the shared component is ready for
it. No packaged skill reference was touched: the decide protocol is unchanged and
already documented, and this is an app-UI change.
## Run title readability: whole in the run view, two lines in the list (17 Oct 2026)
A run's title is derived from its prompt, so it is often long. The run view now
guarantees the operator can read it whole, while the places that are one of many
clamp deliberately. `android/` only; no new dependency, no Pipelines
server/Go/installer/Docker file touched and no run started from the app; the build
and unit tests only, no device command run.
- **Run view shows the whole title.** The run-summary title line rendered
`runLabel(run.title, run.name)` with the Compose default; it now states the
intent with `RUN_VIEW_TITLE_LINES` (`Int.MAX_VALUE`) and `TextOverflow.Clip`, so
it wraps over as many lines as it needs and is never ellipsised. The fixed-height
M3 app-bar copy stays a compact one-line label; the summary's scrollable title is
the complete one.
- **Runs-list rows grow, then clamp.** `RunHistoryScreen.RunRow`'s title went from
`maxLines = 1` to `RUN_ROW_TITLE_LINES` (2), so a longer title takes a second
line before it ellipsises; the row's glyph, status chip and meta line keep their
alignment and the selection highlight and tap target are unchanged.
- **Stage-pane context line.** `StageDetailPane`'s run-label line went from
`maxLines = 1` to `STAGE_RUN_LABEL_LINES` (2) — the pane is compact context, not
the place the whole title lives.
- **One named budget.** `ui/RunIdentity.kt` holds the three named line budgets so
the choice is deliberate at each call site. `RunTitlesTest` (4 cases) pins them
and asserts a clamping place is never more generous than the run view;
`RunIdentityTest` gained a case that `runLabel`/`runIdentity` never shorten a
long title, so re-introducing a truncating helper here fails.
Tests: the 57 result XMLs aggregate to **513 tests, 0 failures, 0 errors, 0
skipped** (`RunTitlesTest` 4/0, `RunIdentityTest` 6/0).
Evidence (macOS, JDK 17 from Homebrew `openjdk@17`, Gradle 9.7.1 `--offline`,
`--no-daemon`, `ANDROID_HOME=/Users/alan/Library/Android/sdk`):
- `gradle :app:testDebugUnitTest --no-daemon --offline --rerun` → `BUILD
SUCCESSFUL`.
- `gradle :app:assembleDebug --no-daemon --offline` → `BUILD SUCCESSFUL`;
`app-debug.apk` 18,486,624 bytes, sha256
`2b23762b54f011bbec680804a232f32bd43c244fb52c465a0f4b2c2c9a0148cb`.
- **APK publish.** Copied to this run's artifacts directory as
`pipelines-debug-wip-2bc00a2.apk` (`2bc00a2` = `git rev-parse --short HEAD`, the
tree being uncommitted WIP on top of it), served at
`http://10.0.0.75:8080/artifacts/278/4/pipelines-debug-wip-2bc00a2.apk`
(`HTTP/1.1 200 OK`, `Content-Type: application/vnd.android.package-archive`; the
downloaded bytes hash to the same sha256).
Not verified in this pass: how the wrapping summary title, the two-line list row
and the two-line stage header actually render — that needs the device, which this
build-and-unit-test pass did not use; visual review owns the operator's Pixel 9
Pro XL.