ZIm/crates/eval/examples/window_title_support/diff_criteria.md
Nathan Sobo bab28560ef
Systematically optimize agentic editing performance (#28961)
Now that we've established a proper eval in tree, this PR is reboots of
our agent loop back to a set of minimal tools and simpler prompts. We
should aim to get this branch feeling subjectively competitive with
what's on main and then merge it, and build from there.

Let's invest in our eval and use it to drive better performance of the
agent loop. How you can help: Pick an example, and then make the outcome
faster or better. It's fine to even use your own subjective judgment, as
our evaluation criteria likely need tuning as well at this point. Focus
on making the agent work better in your own subjective experience first.
Let's focus on simple/practical improvements to make this thing work
better, then determine how we can craft our judgment criteria to lock
those improvements in.

Release Notes:

- N/A

---------

Co-authored-by: Max <max@zed.dev>
Co-authored-by: Antonio <antonio@zed.dev>
Co-authored-by: Agus <agus@zed.dev>
Co-authored-by: Richard <richard@zed.dev>
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-authored-by: Antonio Scandurra <me@as-cii.com>
Co-authored-by: Michael Sloan <mgsloan@gmail.com>
2025-04-19 02:47:59 +00:00

984 B

  1. Adds a new setWindowTitle method to the standardRenderer struct that sets the terminal window title using the OSC 0 escape sequence. It includes thread safety with mutex locking and uses fmt.Fprintf to send the escape sequence with the provided title.
  2. Modifies the handleMessages method in standardRenderer to handle a new setWindowTitleMsg message type by calling the new setWindowTitle method. This completes the rendering-side implementation for window title updates.
  3. Updates the event loop in the Program struct to properly handle setWindowTitleMsg messages by passing them through to the renderer without additional processing, similar to other renderer-specific messages.
  4. Adds documentation to the commands tutorial README explaining how to set window titles in Bubble Tea applications. It shows examples of using tea.SetWindowTitle() in both Init and Update methods, and explains its usefulness for reflecting application state in the window title.