(delta: 1 | -1, exitAtStart = false)
| 492 | // delta: +1 = down/right, -1 = up/left. Returns true if nav happened |
| 493 | // (including deselecting at the start), false if at a boundary. |
| 494 | function navigateFooter(delta: 1 | -1, exitAtStart = false): boolean { |
| 495 | const idx = footerItemSelected ? footerItems.indexOf(footerItemSelected) : -1; |
| 496 | const next = footerItems[idx + delta]; |
| 497 | if (next) { |
| 498 | selectFooterItem(next); |
| 499 | return true; |
| 500 | } |
| 501 | if (delta < 0 && exitAtStart) { |
| 502 | selectFooterItem(null); |
| 503 | return true; |
| 504 | } |
| 505 | return false; |
| 506 | } |
| 507 | |
| 508 | // Prompt suggestion hook - reads suggestions generated by forked agent in query loop |
| 509 | const { |
no test coverage detected