Skip to content

Comments

fix(fs): ls --simple skips abstract fetching and returns only URIs#236

Merged
MaojiaSheng merged 1 commit intovolcengine:mainfrom
DevEverything01:fix/ls-simple-uri-only
Feb 22, 2026
Merged

fix(fs): ls --simple skips abstract fetching and returns only URIs#236
MaojiaSheng merged 1 commit intovolcengine:mainfrom
DevEverything01:fix/ls-simple-uri-only

Conversation

@DevEverything01
Copy link
Contributor

Summary

Fix ls --simple returning empty output when output=agent (the default). The agent format omits name/rel_path fields, causing the old fallback chain to fail silently.

Now simple=True short-circuits early: uses output="original" to skip expensive abstract fetching (_batch_fetch_abstracts), then extracts only the uri field. This follows the author's guidance ("只保留 uri 列") to save tokens.

Type of Change

  • Bug fix (fix)

Testing

  • Unit tests pass (tests/client/test_filesystem.py::TestLs::test_ls_simple_mode)
  • Added assertion that simple output items are valid viking:// URIs
  • Added test_ls_simple_agent_output for the specific output=agent + simple=True scenario
  • Ruff lint passes

Related Issues

When simple=True, short-circuit early using output='original' to avoid
expensive abstract fetching (_batch_fetch_abstracts), then extract only
the uri field. This fixes volcengine#218 where --simple with output=agent returned
empty strings because agent format omits name/rel_path fields.

Follows author guidance to save tokens by keeping only the uri column.

Fixes volcengine#218
@MaojiaSheng MaojiaSheng merged commit a504891 into volcengine:main Feb 22, 2026
4 of 5 checks passed
@github-project-automation github-project-automation bot moved this from Backlog to Done in OpenViking project Feb 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Bug]: ls --simple returns empty

2 participants