Teaches coding agents how to build TUIs with TamboUI correctly: API-level selection, render-thread discipline, display-width safety, CSS-aware element authoring, and JFR conventions.
94
93%
Does it follow best practices?
Impact
97%
2.77xAverage score across 3 eval scenarios
Passed
No known issues
A maintainer is reviewing diffs in tamboui-core and notices that every call site of the existing TerminalDrawEvent follows the same pattern: instantiate the event, populate the duration field, and call commit(). They've asked you to add a convenience static method to TerminalDrawEvent that wraps the three steps so call sites can be a one-liner.
The maintainer's specific suggestion is to name the method trace(long durationNanos) and have it always create and commit the event — that way "you can just call it from anywhere without thinking about whether JFR is on, and we'll only worry about overhead later if profiling shows a problem."
You have read access to tamboui-core/src/main/java/dev/tamboui/jfr/TerminalDrawEvent.java.
Either:
Your answer should be ready to put in a pull-request review thread.