Skip to content

Commit 86cda21

Browse files
tode-rljrvb-rl
andauthored
feat: add secret config to bmj, toggle available to show public benchmarks for new jobs (#156)
## Description - Add secret config for benchmark jobs - Show public benchmarks so you can start tbench via rli ## Type of Change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Documentation update - [ ] Code refactoring - [ ] Performance improvement - [ ] Test updates ## Related Issues ## Testing - [ ] I have tested locally - [ ] I have added/updated tests - [ ] All existing tests pass ## Checklist - [ ] My code follows the code style of this project - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published ## Screenshots (if applicable) <!-- Add screenshots to help explain your changes --> ## Additional Notes <!-- Any additional information that reviewers should know --> --------- Co-authored-by: Rob von Behren <rob@runloop.ai>
1 parent 512d41f commit 86cda21

8 files changed

Lines changed: 512 additions & 286 deletions

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,29 @@ pnpm run build
259259

260260
# Watch mode
261261
pnpm run dev
262+
```
263+
264+
### Debugging the TUI
265+
266+
If the TUI crashes (e.g. when pressing Enter on a form field), you can capture logs to inspect the error:
267+
268+
**Option 1 – stderr to file (no debug env)**
269+
Useful to see uncaught errors and stack traces that the app writes to stderr:
270+
271+
```bash
272+
pnpm run build
273+
pnpm run start:debug
274+
# Reproduce the crash, then:
275+
cat debug.log
276+
```
277+
278+
**Option 2 – run under Node with inspector**
279+
To get a stack trace from an uncaught exception, run with Node’s inspector and reproduce the crash; the process will pause and you can inspect the stack:
280+
281+
```bash
282+
node --inspect-brk dist/cli.js
283+
# Attach Chrome/Edge to the URL shown (e.g. chrome://inspect) and resume; reproduce the crash.
284+
```
262285

263286
## Contributing
264287

src/components/MainMenu.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,13 @@ interface MenuItem {
2525
}
2626

2727
const allMenuItems: MenuItem[] = [
28-
/**
2928
{
3029
key: "benchmarks",
3130
label: "Benchmarks",
3231
description: "Performance testing and evaluation",
3332
icon: "▷",
3433
color: colors.success,
3534
},
36-
*/
3735
{
3836
key: "devboxes",
3937
label: "Devboxes",
@@ -207,10 +205,8 @@ export const MainMenu = ({ onSelect }: MainMenuProps) => {
207205
selectByKey("snapshots");
208206
} else if (input === "o") {
209207
selectByKey("objects");
210-
/**
211208
} else if (input === "e") {
212209
selectByKey("benchmarks");
213-
*/
214210
} else if (input === "n") {
215211
selectByKey("settings");
216212
} else if (input >= "1" && input <= "9") {

0 commit comments

Comments
 (0)