You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Phase 2 single parse authority and session lifecycle
Add poste run --describe as the sole HTTP block metadata source, wire
Lua through describe.lua, and clear request-scoped state via HTTP/SQL
sessions on each run_* entry so prior request data cannot leak.
Copy file name to clipboardExpand all lines: LEARNINGS.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,9 @@
3
3
Agent self-evolution log. When you fix a non-obvious bug or encounter a
4
4
pitfall, log it here. Check this file before starting any task.
5
5
6
-
- 2026-07-08: infra — Added `tools/relation-check.sh` for pre-flight code relation scanning. Run before modifying HTTP Lua code. Covers: `nvim_buf_set_lines` + `sanitize_lines` coverage, state field lifecycle (SET/READ/CLEAR), format function callers, pre-render consistency. Replaces the need for a manually-synced relation map. See `tools/relation-check.sh`.
6
+
- 2026-07-19: Phase2 F1 — HTTP method/path/headers must not be re-parsed in Lua (`run.lua` / `indicators.extract_request_block` for semantics). Use `poste run --describe` via `lua/poste/http/describe.lua`. `cache.lua` keeps only UI line_type/bounds; semantic blocks via `cache.get_semantic_blocks()`. See `crates/poste-core/src/parser/mod.rs``describe_blocks`, `crates/poste-cli/src/run.rs --describe`.
7
+
- 2026-07-19: Phase2 F5 — Request-scoped state (`last_response`, `last_responses`, `response_index`, `_json` filter fields, `pending_request`, assertions/logs) must be cleared at every `run_*` entry via `http/session.begin()` / `sql/session.begin()`. Persistent: `global_vars`, `script_variables`, `http_history`, `current_env`, SQL connection/database. See `lua/poste/http/session.lua`.
8
+
- 2026-07-08: infra — Added `tools/relation-check.sh` for pre-flight code relation scanning. Run before modifying HTTP Lua code. Covers: `nvim_buf_set_lines` + `sanitize_lines` coverage, state field lifecycle (SET/READ/CLEAR), format function callers, pre-render consistency, session lifecycle. See `tools/relation-check.sh`.
7
9
8
10
- 2026-07-05: HTTP Verbose tab shows `{{base_url}}/users/42` instead of resolved URL. Fix: `build_pending_request` in `run.lua:212` only resolved `@var` definitions but not `{{var}}` from env.json. Added env.json var resolution with iterative chaining. See `lua/poste/http/run.lua:212`.
9
11
- 2026-07-05: Picker forced to snacks.nvim. Removed auto-detection (telescope/fzf/mini/snacks chain). `select.lua` now requires snacks as hard dependency, with built-in float + vim.ui.select fallbacks. Normalizes items to `{key, name, description}` format. See `lua/poste/select.lua`.
0 commit comments