{"version":"2.1.248","anchor":"tool-definitions-and-syntax-highlighting-tables-are-built-at","canonical_anchor":"tool-definitions-and-syntax-highlighting-tables-are-built-at","heading":"Tool definitions and syntax-highlighting tables are built at module load instead of on first use","tier":"internal","area":"Startup","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248\/e\/tool-definitions-and-syntax-highlighting-tables-are-built-at","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248","markdown":"### Tool definitions and syntax-highlighting tables are built at module load instead of on first use\n\nSome tool definitions and highlighting tables are built at startup instead of on first use.\n\n**What**\n\nSeveral internals that were previously constructed lazily, on the first call that needed them, are now plain top-level objects built when their module loads. This covers the Read and TaskList tool definitions, the syntax-highlighting language registry, and the filesystem adapter that registry uses. Nothing observable changes: schemas, descriptions and highlighting behaviour are identical, only the moment of construction moved earlier.\n\n**Details**\n\n- Read and TaskList tool definitions no longer go through deferred initialisation; their JSON schemas and descriptions are byte-for-byte unchanged.\n- The highlight language registry, including entries such as the one for VBScript embedded in HTML, is now a top-level object rather than being assembled on the first highlighting call.\n- The filesystem adapter backing the highlighter is constructed at load in the same way.\n- No flag, setting or environment variable gates this; there is no lazy path left to fall back to.\n- Read still reports when a whole-file read was auto-paginated because it exceeded the token cap, meaning the returned content is only a partial first page.\n\n**Evidence**\n\n`True when a whole-file read was auto-paginated because it exceeded the token cap (the content is a partial first page).`, `\"vbscript-html\":`\n\n- Area: Startup\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 0\/5"}