Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

fix(tui): remove limyuxi dragon prank spinner

yxlyx3eb8c74af5c2
diff --git a/src/main.zig b/src/main.zig
index 1700f235..4946c37d 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -2946,18 +2946,12 @@ const anims = [_]Anim{
.{ .name = "matrix", .desc = "matrix rain strip", .frame = animMatrix },
.{ .name = "pacman", .desc = "pac-man eating dots", .frame = animPacman },
.{ .name = "starfield", .desc = "parallax stars", .frame = animStarfield },
- .{ .name = "dragon", .desc = "a yellow dragon breathing fire", .frame = animDragon }, // PRANK: limyuxi_dragon_prank
};
var g_anim_index: usize = 0; // /animation selection (index into anims)
var g_anim_random = false; // pick a fresh one per request
var g_anim_off = false; // /animation off
var g_anim_current: usize = 0; // what spinnerTask draws right now
-// PRANK — remove in a future release. Gives limyuxi a yellow-dragon thinking
-// spinner when graff runs from their home dir (/Users/limyuxi). To remove:
-// flip this to false (or delete the flag, animDragon, the "dragon" anims entry,
-// and the cwd hook in main). Tracked in memory: prank_limyuxi_dragon.
-const limyuxi_dragon_prank = true;
var g_shine_phase: usize = 0; // ultracode input-wave animation frame
// Steering (Codex-style): bytes typed while a turn streams are captured
@@ -3044,20 +3038,6 @@ fn animThinking(w: *Io.Writer) Io.Writer.Error!void {
try w.print(" {s}thinking…{s}", .{ style.dim, style.reset });
}
-fn animDragon(w: *Io.Writer, i: usize) Io.Writer.Error!void {
- // PRANK (limyuxi_dragon_prank): a wee yellow dragon — undulating tail, the
- // dragon, and a flickering flame.
- const tail = [_][]const u8{ "∿", "~" };
- const spark = [_][]const u8{ "✦", "✺", "✸", "✶", "✷", "✵" };
- try w.print("{s}{s}", .{ style.bold, style.yellow });
- var j: usize = 0;
- while (j < 5) : (j += 1) try w.writeAll(tail[(i + j) % tail.len]);
- try w.writeAll(style.reset);
- try w.writeAll("🐉");
- try w.print("{s}{s}{s}{s}", .{ style.bold, style.yellow, spark[i % spark.len], style.reset });
- try animThinking(w);
-}
-
fn animBraille(w: *Io.Writer, i: usize) Io.Writer.Error!void {
const frames = [_][]const u8{ "⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏" };
try w.print("{s}{s} thinking…{s}", .{ style.dim, frames[i % frames.len], style.reset });
@@ -5266,16 +5246,6 @@ pub fn main(init: std.process.Init) !void {
g_codedb_guard = init.environ_map.get("GRAFF_NO_CODEDB_GUARD") == null; // issue #626 guard, opt-out via env
loadSkillSettings(io, arena); // per-skill opt-outs, also gates the auto-connect
loadAnimationSetting(io, arena); // {"animation": "..."} → thinking spinner choice
- // PRANK — remove in a future release (see the limyuxi_dragon_prank flag).
- // A yellow dragon thinking spinner just for limyuxi, when running from their
- // home dir. Still overridable at runtime with /animation.
- if (limyuxi_dragon_prank and (std.mem.eql(u8, g_cwd_display, "/Users/limyuxi") or std.mem.startsWith(u8, g_cwd_display, "/Users/limyuxi/"))) {
- if (animIndex("dragon")) |di| {
- g_anim_index = di;
- g_anim_off = false;
- g_anim_random = false;
- }
- }
connect: {
for (companion_servers) |c| if (mcpServerConnected(registry_storage.tools, c.server)) break :connect;
for (companion_servers) |c| {