HF RL Explorer

In fsspec/implementations/local.py , the LocalFileOpener.discard() method rolls back a non-autocommitting…

In fsspec/implementations/local.py , the LocalFileOpener.discard() method rolls back a non-autocommitting…: a task in UltraTerminal (Harbor dataset). Fix discard() so that it closes the underlying file handle before removing the temporary file, matching what commit() already does.

The task

Fix `discard()` so that it closes the underlying file handle before removing the temporary file, matching what `commit()` already does.

Part of harness-hub/UltraTerminal.