GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bug(id): put path:name spec is hijacked by stdin auto-detection whenever stdin is not a terminal (breaks toplevel build) · Issue #4152 · developing-today/code

bug(id): put path:name spec is hijacked by stdin auto-detection whenever stdin is not a terminal (breaks toplevel build) #4152

New issue
Copy link
New issue
Copy link
Closed
#4153
Closed
bug(id): put path:name spec is hijacked by stdin auto-detection whenever stdin is not a terminal (breaks toplevel build)#4152
#4153
Copy link
Labels
priority/highImportant and time-sensitive

Description

@dezren39
dezren39
opened on Nov 2, 2026
Issue body actions

Seventh breakage in the #3720 fold chain — the second fold-switch attempt (2026-11-01 21:5x CST) failed its in-sandbox checkPhase on exactly one test:

test put_get_tests::test_put_with_custom_name ... FAILED
Command failed: ["put", "/build/.tmpVLBYe6/test.local.txt:test.custom-name"]
stderr: Error: name must be a safe relative path: /build/.tmpVLBYe6/test.local.txt:test.custom-name

Reproduced deterministically on a host: cargo test -p id --test cli_integration -- test_put_with_custom_name < /dev/null fails in 0.27s with the same error; with a terminal stdin it passes (which is how it stayed hidden — interactive runs mask it).

Root cause (src/commands/put.rs, cmd_put_multi): the stdin auto-detection

if items.len() == 1 && !stdin().is_terminal() && !from_stdin {
    let path = PathBuf::from(&items[0]);
    if !path.exists() { return cmd_put_local_stdin(name /* the whole spec */).await; }
}

checks the LITERAL spec string as a path. A path:name spec never exists as a literal path (the colon), so every non-interactive id put file:name is misrouted into stdin-content mode, and FileOps::put then rejects the whole spec as an unsafe name (leading /). With a name that passed validation it would silently store stdin under a garbage name instead.

Fix: the existence check must use the path part of the spec (parse_put_spec). Plain names and missing files keep the current stdin behavior; an existing file behind a path:name spec goes to the normal file-put loop. Blocks the #3720 fold switch (the toplevel's id checkPhase runs non-interactively by construction).

Activity

  1. dezren39
    added
    priority/highImportant and time-sensitive
    on Nov 2, 2026
  2. dezren39
    added 2 commits that reference this issue on Nov 2, 2026

    fix(id): stdin auto-detection must not hijack put path:name specs (#4152

    75b2d5e

    Merge pull request #4153 from developing-today/fix/id-put-spec-stdin-…

    5b56410
  3. dezren39
    closed this as completedin #4153on Nov 2, 2026
  4. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 24, 2026 – with developing.today fleet
    Contributor
    More actions

    AUDIT-7 Lane 2 slice 3 — closing evidence. Verified against the issue body and merged implementation PR(s):

    • PR #4153 — fix(id): stdin auto-detection must not hijack put path:name specs (#4152) (merged 2026-11-02)

    The issue had zero comments in the fresh pre-action read; this comment records the missing close evidence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/highImportant and time-sensitive

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.