Commit 248b65a
committed
feat(simulate): open a cited turn from the summary with its number
A summary citation could only be followed out of the terminal, by
ctrl+clicking its OSC 8 link into the dashboard. The turn it cites is
already in the run, so the TUI can open it directly.
Each citation now carries a number, and pressing that digit on the list
view opens the cited job. Numbering follows render order through one
index shared by every block of the summary, so the digit a reader presses
selects the citation whose label shows it. Only the first nine are
numbered: a number is an invitation to press that digit, and there is no
tenth digit.
A jump lands at the top of the printed job, which scrollback cannot be
scrolled past, so the cited turn is marked where it prints. The mark
rides the message text rather than the speaker header, which a message
continuing an open agent block never prints.
Numbering keys off a citation naming a job, not off a dashboard URL
resolving: the jump is local, so it works where the link does not.1 parent fca3a0e commit 248b65a
3 files changed
Lines changed: 125 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
47 | 76 | | |
48 | | - | |
49 | | - | |
| 77 | + | |
50 | 78 | | |
51 | 79 | | |
52 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
53 | 89 | | |
54 | 90 | | |
55 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
53 | 62 | | |
54 | 63 | | |
55 | 64 | | |
56 | | - | |
57 | | - | |
58 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
59 | 91 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
220 | 226 | | |
221 | 227 | | |
222 | 228 | | |
| |||
953 | 959 | | |
954 | 960 | | |
955 | 961 | | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
956 | 972 | | |
957 | 973 | | |
958 | 974 | | |
| |||
1673 | 1689 | | |
1674 | 1690 | | |
1675 | 1691 | | |
| 1692 | + | |
1676 | 1693 | | |
1677 | 1694 | | |
1678 | 1695 | | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
1679 | 1705 | | |
1680 | 1706 | | |
1681 | 1707 | | |
| |||
1760 | 1786 | | |
1761 | 1787 | | |
1762 | 1788 | | |
| 1789 | + | |
1763 | 1790 | | |
1764 | | - | |
| 1791 | + | |
1765 | 1792 | | |
1766 | 1793 | | |
1767 | 1794 | | |
| |||
1811 | 1838 | | |
1812 | 1839 | | |
1813 | 1840 | | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
1814 | 1845 | | |
1815 | 1846 | | |
1816 | 1847 | | |
| |||
1872 | 1903 | | |
1873 | 1904 | | |
1874 | 1905 | | |
1875 | | - | |
1876 | | - | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
1877 | 1917 | | |
1878 | 1918 | | |
1879 | 1919 | | |
| |||
2096 | 2136 | | |
2097 | 2137 | | |
2098 | 2138 | | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
2099 | 2142 | | |
2100 | 2143 | | |
2101 | 2144 | | |
| |||
0 commit comments