Skip to content

MIT license, app icon, and fixes from the last Copilot review of #1 - #2

Merged
ShikeChen-MS merged 2 commits into
mainfrom
mit-license-and-icon
Nov 15, 2026
Merged

ShikeChen-MS merged 2 commits into
mainfrom
mit-license-and-icon

Conversation

@ShikeChen-MS

Copy link
Copy Markdown
Owner

TermRest icon

Summary

Three changes on top of #1:

  • MIT license.
    • LICENSE (Copyright (c) 2026 Shike Chen).
    • The README has a License section.
    • termrest.exe's file properties show the copyright (<Copyright> in Directory.Build.props).
    • CI's release packages include LICENSE next to the README.
  • App icon: a round badge with a >_ prompt and {TR} in braces.
    • assets/termrest.svg is the source.
    • assets/termrest.ico holds it at 16, 20, 24, 32, 40, 48 and 64 px (32-bit bitmaps) and at 256 px (PNG). 256 px is the largest size Windows takes from an icon; it scales that one up for bigger views. Each size is drawn from the vectors rather than scaled from one bitmap.
    • assets/termrest.png is a 1024 px copy.
    • ApplicationIcon in TermRest.Cli.csproj gives termrest.exe the icon; Native AOT copies it into the executable.
  • Fixes for the notes in Copilot's last review of Fix ~360 bugs, security issues and performance problems found in 21 rounds of code review #1 (its "previously missed" issues). Each has a test that fails without it:
    • cURL import: a cmd.exe command with an apostrophe outside double quotes (--data foo'bar ^) was read as bash, so the line after the ^ became part of the body. Checking it turned up a regression from f8ca53d: a bash command with a quoted backtick at the end of a line was read as PowerShell. Other shells' quoting is now tried only when the usual reading leaves a quoted value open.
    • Unreadable folders: a Postman v3 collection without a definition, whose requests are all in a folder that can't be listed, was left out of the workspace without a word. It's now a load error, and such a folder no longer hides the readable folders next to it.
    • Case of workspace paths: outside Windows, the script runtimes, proxy and outside-files approvals chosen for a workspace folder applied to its path in any case. On Linux, and on a macOS volume formatted case-sensitive, work/API is another folder than work/api. They now hold for the path exactly as written.

Commits

Commit Content
19b3525 Core: fixes from the last Copilot review of PR #1
562a631 Docs, CLI and CI: MIT license and app icon

Testing

Check Result
Build, Windows and Linux (WSL Ubuntu 24.04) 0 warnings
Native AOT, win-x64 0 warnings; 20.28 MB, 0.05 MB more than before
Icon in termrest.exe All 8 sizes are in its resources. What Windows extracts at each size (PrivateExtractIcons, 16–256 px) matches the vector render pixel for pixel.
termrest.ico Windows' LoadImage returns each size exactly
termrest.svg resvg's renders at 256, 1024 and 2048 px match, apart from edge antialiasing
Tests, fixes commit, Windows Core 739, CLI 38, TUI 254: all pass, apart from 8 platform skips
Tests, fixes commit, WSL The 268 tests of the changed classes pass
Tests, license commit CLI 38 pass; termrest --version and snapshot run from the AOT build

Two cases can't run locally: the case-sensitive path test can only fail on macOS, and the unreadable-folder test is skipped as root in WSL. CI runs both.

Notes

  • The binaries bundle MIT-licensed libraries (Terminal.Gui, System.CommandLine, YamlDotNet) whose license notices should ship with releases too. That's left for a follow-up.
  • Under parallel load, TimerResolutionTests (which times 1 ms sleeps) failed once locally. It passes on its own and in a TUI-only run.

ShikeChen-MS and others added 2 commits November 14, 2026 20:56
cURL import reads a cmd.exe command with an apostrophe outside double quotes (curl https://h/x --data foo'bar ^) as cmd.exe, where an apostrophe is a character: the lines after its ^ continuation stayed in an unclosed quoted value, so the header that followed became part of the body. PowerShell's and cmd.exe's quoting are tried only when the usual reading leaves a quoted value open, so a bash command with a quoted backtick at the end of a line ('it'\''s ``` ...') is read as bash again, as it was before f8ca53d. A Postman v3 collection without a definition whose requests are all in a folder that cannot be listed is a load error, where it was left out without a word; such a folder no longer hides the readable folders next to it. Outside Windows, the runtimes, proxy and outside-files approvals chosen for a workspace folder hold for its path exactly as written: on Linux, and on a macOS volume formatted case-sensitive, the same path in another case is another folder, which got them.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
TermRest is released under the MIT License (LICENSE, Copyright (c) 2026 Shike Chen): the README says so, termrest.exe's file properties show the copyright, and CI's release packages include the license. termrest.exe has an icon, a round badge with a >_ prompt and {TR} in braces. assets/termrest.svg is its source; termrest.ico holds it drawn from the vectors at 16, 20, 24, 32, 40, 48 and 64 px (32-bit bitmaps) and at 256 px (PNG, the largest size Windows takes from an icon), and termrest.png at 1024 px. Native AOT copies the icon into the executable.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@ShikeChen-MS
ShikeChen-MS merged commit 9ad8c42 into main Nov 15, 2026
10 checks passed
@ShikeChen-MS
ShikeChen-MS deleted the mit-license-and-icon branch November 15, 2026 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant