Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(llm,aw_editor): cfg-gate ReadWait and restore nav emoji tests
Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
  • Loading branch information
cursoragent and lazyxeon committed Nov 5, 2026
commit 1fb12467d00788f0d546b7436bcbfb7ff9e80aa3
1 change: 1 addition & 0 deletions astraweave-llm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ pub async fn read_capped_text_limited(response: reqwest::Response, limit: usize)
}

/// How long the next body read may block, and which deadline a timeout is.
#[cfg(feature = "ollama")]
struct ReadWait {
wait: std::time::Duration,
on_timeout: &'static str,
Expand Down
11 changes: 2 additions & 9 deletions tools/aw_editor/src/panels/navigation_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2043,15 +2043,10 @@ mod tests {
// ============================================================

// NavAreaType tests (7 tests)
// FIXME: Skipped due to Windows emoji encoding issues (U+FFFD replacement character)
// The Road emoji "🛣️" contains variation selector U+FE0F which renders inconsistently
// across Windows console/file IO, causing assertion failures. The Display impl works
// correctly; this is purely a test environment issue.
#[test]
#[ignore = "Windows emoji encoding issue"]
fn test_nav_area_type_display() {
assert_eq!(format!("{}", NavAreaType::Walkable), "🚶 Walkable");
assert_eq!(format!("{}", NavAreaType::Road), "�️ Road");
assert_eq!(format!("{}", NavAreaType::Road), "🛣️ Road");
assert_eq!(format!("{}", NavAreaType::Water), "💧 Water");
Comment on lines 2046 to 2050
assert_eq!(format!("{}", NavAreaType::Grass), "[Leaf] Grass");
assert_eq!(format!("{}", NavAreaType::Mud), "🟫 Mud");
Expand All @@ -2069,12 +2064,10 @@ mod tests {
assert_eq!(NavAreaType::Blocked.name(), "Blocked");
}

// FIXME: Skipped due to Windows emoji encoding issues (U+FFFD replacement character)
#[test]
#[ignore = "Windows emoji encoding issue"]
fn test_nav_area_type_icon() {
assert_eq!(NavAreaType::Walkable.icon(), "🚶");
assert_eq!(NavAreaType::Road.icon(), "�️");
assert_eq!(NavAreaType::Road.icon(), "🛣️");
assert_eq!(NavAreaType::Water.icon(), "💧");
Comment on lines 2067 to 2071
assert_eq!(NavAreaType::Blocked.icon(), "🚫");
}
Expand Down