11 Commits
Author SHA1 Message Date
Lukas 2f8cfb03a6 fix: an empty REPL line no longer quits the chapter silently (#569)
Every chapter REPL treated an empty line as a quit command and exited with
status 0 without a word, while the banner only promises "Type q to quit".
Under VS Code's debugger the Python extension's environment-activation line
is often injected into stdin after the program started, so the first thing
the REPL read was a blank line and the chapter vanished right after its
banner.

An empty line is now ignored and the prompt comes back; q and exit still
quit, and EOF/Ctrl-C still end the loop. s17 already behaved this way. A
static test keeps every chapter's quit check free of the empty string.

Fixes #567
2026-10-27 12:39:40 +08:00
LiJiasheng 94ca468557 Add OS-aware shell context to current course prompts (#587)
* Add host environment context to chapter prompts

* Align prompt examples with environment context
2026-09-28 21:48:45 +08:00
Haoran 08263f49b3 refactor: simplify destructive command matching 2026-08-27 00:33:25 +08:00
Haoran 1293797585 fix: harden destructive command matching 2026-08-26 15:07:59 +08:00
mameikagou 44e33d0ec3 fix(s03): match Windows del as a command word 2026-08-26 02:48:13 +08:00
Haoran cce031e632 fix: harden subprocess output decoding across lessons 2026-08-26 01:05:16 +08:00
Haoran 199402f9d4 fix: use UTF-8 for text file operations 2026-08-24 20:28:37 +08:00
Haoran 61c3e64595 fix: support bounded recursive glob across lessons 2026-08-23 11:28:14 +08:00
Haoran 711249e297 fix: build task dependencies in two phases 2026-08-19 01:35:08 +08:00
Haoran 168fff86dd Fix empty tool-use response handling 2026-08-15 00:03:45 +08:00
Haoran 7e2f2fd99b refactor: streamline the course to 17 lessons 2026-08-12 03:02:42 +08:00