Post-attention follow-ups: All-sessions view fix, wiki-lint CI parity, terminal/attention wiki pages #199
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "chore/post-attention-followups"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Post-attention / post-terminal-capture follow-ups. Fresh branch off current
main(includes the #195 attention fix), 3 commits / 6 files / +370−74.0b9ea33fix(tui)6de4133chore(ci)wiki-lintstep to CI so it matches localci-checks.sh20b65f9docs(wiki)terminal.md(terminal-capture layer from #193) andoperator-attention.md; fix state-machine drift inglasspane.mdNotes for review
terminal.mddocuments the capture/signature/edge-alert layer that landed in #193;operator-attention.mdcaptures the attention-tier model (#191/#195). Theglasspane.mdedit corrects state-machine drift against the shipped code.wiki-lintparity closes the gap where the markdown/wiki lint only ran locally.Gates (verified green on the combined branch)
cargo fmt --all --check(checked by exit code, not piped)cargo clippy --all -- -D warningscargo test— 292 passwiki-lint— 144 pass🤖 Generated with Claude Code
Once any pane carried a session_id, rebuild_session_list() forced session_filter = Some(first), so the operator could never get back to the aggregated "All sessions" view — Tab only cycled individual sessions. Documented as a known bug in GLASSPANE-TUI-ENHANCEMENTS.md. Model the session cycle as [All, s1, s2, ...]: index 0 is a synthetic "All sessions" entry (filter = None), any other index scopes to sessions[i-1]. Two helpers encode the mapping: - session_count() = sessions.len() + 1 (All is always present) - apply_session_filter() maps session_idx -> filter (0 => None) Behavior changes: - On connect, the operator now lands on "All sessions" (was: the alphabetically-first session). The aggregated view is the more useful default and is always reachable via Tab/BackTab. - The position indicator now shows for any cycle > 1 item, so the "All (1 of 2)" hint appears even with a single session. self.sessions still holds real session ids only (no sentinel string), so the sorted/deduped invariant is unchanged. Tests: - rebuild_session_list_dedupes_and_sorts: updated for the new default + offset mapping (index 1 => s1, index 2 => s2). - all_sessions_view_is_reachable_with_sessions_present: new regression test covering connect-defaults-to-All and the Tab cycle All -> s1 -> s2 -> All. - attention_bar_ignores_other_session_panes: comment corrected (rebuild no longer selects the first session). 19/19 TUI tests pass; fmt + clippy (-D warnings) clean. (Sam & Claude)