instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
talent-plan__tinykv__35
talent-plan/tinykv
35
defect
6a6122f5842d7c8b28e66b5f4cfcb82e5181b0fb
48c37831dd3367083f2ee42b42d439f14ab53894
Initial scheduler implementation
This PR implements the start of the storage/transaction layer. Only raw get is refactored to the new system and the scheduler is very, very simple (see the message for the forth commit). There is also some preparatory refactoring in the earlier commits. Obviously, this is a long way from a finished implementation, b...
diff --git a/kv/engine_util/engines.go b/kv/engine_util/engines.go index fc04fdc1e..dbbd3b502 100644 --- a/kv/engine_util/engines.go +++ b/kv/engine_util/engines.go @@ -2,6 +2,9 @@ package engine_util import ( "github.com/coocood/badger" + "github.com/ngaut/log" + "github.com/pingcap-incubator/tinykv/kv/config" + ...
1
1
0
[{"id": "G0", "claim": "Move the newly added Scheduler, RespResult, RespOk, RespErr and Command definitions out of kv/tikv/server.go into a new file, so they can be cleaned up easily later.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
talent-plan__tinykv__404
talent-plan/tinykv
404
defect
dae8650e3be3e7251f2d6c7cb0960a2f2ec46209
970e828c025570e48151e35de51206441915b92b
load snapshot meta again when the snapshot exists, make sure snapshot is not nil
doSnapshot like: ``` func doSnapshot(engines *engine_util.Engines, mgr *snap.SnapManager, regionId uint64) (*eraftpb.Snapshot, error) { s, err := mgr.GetSnapshotForBuilding(key) ... err = s.Build(txn, region, snapshotData, &snapshotStatics, mgr) ... return snapshot, err } ``` In GetSnapshot...
diff --git a/kv/raftstore/snap/snap.go b/kv/raftstore/snap/snap.go index 0b25fd99d..b84c6d5e6 100644 --- a/kv/raftstore/snap/snap.go +++ b/kv/raftstore/snap/snap.go @@ -524,6 +524,11 @@ func (s *Snap) Build(dbSnap *badger.Txn, region *metapb.Region, snapData *rspb.R if s.Exists() { err := s.validate() if err ==...
2
2
0
[{"id": "G0", "claim": "The test cluster should ensure the snapshot/db directory is not shared between stores, since all stores currently share one config and thus one dbPath/snap folder.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G3", "claim": "The block ad...
null
talent-plan__tinykv__50
talent-plan/tinykv
50
defect
22377b9f9fbbc2bff4b7c298262778e30ae70682
bbab34bbfb211f8eca5748393265a4bc94fc0589
test_raftstore: implement TestNodePartitionWrite
Signed-off-by: andylokandy <andylokandy@hotmail.com>
diff --git a/kv/pd/client.go b/kv/pd/client.go index e519cb63a..9271bdf9a 100644 --- a/kv/pd/client.go +++ b/kv/pd/client.go @@ -45,7 +45,7 @@ type Client interface { GetRegionByID(ctx context.Context, regionID uint64) (*metapb.Region, *metapb.Peer, error) AskBatchSplit(ctx context.Context, region *metapb.Region, c...
2
2
2
[{"id": "G0", "claim": "CallCommandOnNode reads c.trans.routers without holding the lock; the map access should be covered by a read lock.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "NewMockTransport and NewCluster should return pointers instead ...
null
talent-plan__tinykv__59
talent-plan/tinykv
59
defect
9dc002c33fdb8c9be7bb15ac1d9b146f3d995c06
8a3ba39622cd264924697ceff31f61735a51edad
Implement rollback and scan
cc #38 PTAL @Connor1996 @andylokandy @zyh-hust
diff --git a/kv/tikv/response.go b/kv/tikv/response.go index 2128b598e..94de60693 100644 --- a/kv/tikv/response.go +++ b/kv/tikv/response.go @@ -91,7 +91,7 @@ func (rr *RespResult) commitResponse() (*kvrpcpb.CommitResponse, error) { } return nil, errors.New("Unexpected type in response") } -func (rr *RespResult) b...
3
3
2
[{"id": "G0", "claim": "The scan command should name its scanner variable `scanner` instead of `iter`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Scanner.Next should check whether the user key is locked, because with snapshot isolation a loc...
null
talent-plan__tinykv__69
talent-plan/tinykv
69
defect
ecaabd9ad49c7a922639bfebf331cd3803174e46
0128af5d2f014daee3aeddcd6ed4cfeece3dc7a3
Implement resolve lock
Closes #38 PTAL @Connor1996
diff --git a/kv/tikv/server.go b/kv/tikv/server.go index 807d9fc33..7ddc4049e 100644 --- a/kv/tikv/server.go +++ b/kv/tikv/server.go @@ -96,7 +96,9 @@ func (svr *Server) KvBatchRollback(ctx context.Context, req *kvrpcpb.BatchRollba } func (svr *Server) KvResolveLock(ctx context.Context, req *kvrpcpb.ResolveLockRequ...
1
1
1
[{"id": "G0", "claim": "Remove `TxnInfos` (BatchResolveLocks is only used by GC) and `Keys` from `ResolveLockRequest` to simplify the API.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
talex-touch__tuff__254
talex-touch/tuff
254
defect
451b32117b9bd73d583bc514d86d96fbb4b80432
02c3483a856415d179eb5c27dd26706062fa290b
fix(core-app): restore localized app display name indexing on macOS
## Summary - replace the old #226 branch with a scoped apps-search fix only - prefer Spotlight localized display names during fresh macOS app scans - normalize Chinese displayName pinyin keywords to lowercase for stable matching - sync the related plan docs for the replacement PR ## Validation - `pnpm -C "apps/core-ap...
diff --git a/apps/core-app/src/main/modules/box-tool/addon/apps/app-provider.test.ts b/apps/core-app/src/main/modules/box-tool/addon/apps/app-provider.test.ts index 809b2407fd..f42010db7f 100644 --- a/apps/core-app/src/main/modules/box-tool/addon/apps/app-provider.test.ts +++ b/apps/core-app/src/main/modules/box-tool/a...
4
4
1
[{"id": "G0", "claim": "Normalize the localized display name fallback before selecting it, because getLocalizedDisplayName() trims values but does not reject \"(null)\" or strip \".app\", so a malformed localized string can bypass the new normalization and block plist/bundle fallbacks.", "category": "correctness", "ver...
null
talhaorak__pytaiga-mcp__7
talhaorak/pytaiga-mcp
7
defect
2698ef326b95ef710378d4ff8ef4ee53471db103
73f1171cb44e7671014a792b4b6033c964711446
feat: Enhanced API (Wiki, Linking), Robust Partial Updates & Hardened Tests
This PR introduces a comprehensive set of improvements to the MCP server, focusing on API completeness and reliability. ### 🚀 Key Features - **Wiki Support:** Added `create_wiki_page` and `get_wiki_page` tools. - **Epics & Linking:** Implemented `link_user_story_to_epic` to support proper agile hierarchy. - **Task Ma...
diff --git a/src/server.py b/src/server.py index 3c9b429..8dc435f 100644 --- a/src/server.py +++ b/src/server.py @@ -72,6 +72,7 @@ def _parse_mcp_kwargs(kwargs: dict) -> dict: "is_contact_activated", }, "user_story": { + "subject", "description", "status", "is_closed...
21
5
1
[{"id": "G0", "claim": "The refactor calls taiga_client_wrapper.get_api(), but TaigaClientWrapper has no get_api() method (only a public api attribute), which will cause an AttributeError at runtime breaking this tool and all others changed the same way; the calls should be reverted to use the api attribute.", "categor...
null
talostrading__sonic__105
talostrading/sonic
105
defect
92a6081d821209c8f86bf0282ffe439928937ce8
b325030580d1a50be94c6c592b65a9c00f7d72fb
Introduce a circular buffer that always returns continuous chunks
*note: the same syscalls that make the mirrored buffer possible also make aeron possible. There's no other magic involved. Both aeron and sonic strive to use `/dev/shm`.* *note: work in progress. I'm planning to testdrive this on edx in 1 weekish on a machine with plenty of RAM to spare* ## Why do we need this? ...
diff --git a/mirrored_buffer.go b/mirrored_buffer.go new file mode 100644 index 00000000..b2e1795a --- /dev/null +++ b/mirrored_buffer.go @@ -0,0 +1,160 @@ +package sonic + +import ( + "fmt" + "syscall" + "unsafe" +) + +type MirroredBuffer struct { + slice []byte + baseAddr unsafe.Pointer + size int + head i...
11
8
1
[{"id": "G0", "claim": "The unsafe calls introduced by the pull request's mirrored buffer code should be audited (code-scanning alert 'Use of unsafe calls should be audited').", "category": "security", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G7", "claim": "The reviewer questions why th...
null
talostrading__sonic__111
talostrading/sonic
111
defect
dc754c17f423301afa9890fe7b6f83752f47c4ce
4c711b18daa96830863d513115149554a3ddcff1
Use an array instead of a map for pending reads/writes
[Context](https://github.com/talostrading/sonic/blob/110-dont-use-a-map-for-pending-readswrites/io.go#L22). Best to go commit by commit. This is one of the things needed to make sonic zero-alloc. More incoming.
diff --git a/async_adapter.go b/async_adapter.go index 94cad78..29935e1 100644 --- a/async_adapter.go +++ b/async_adapter.go @@ -21,7 +21,6 @@ type AsyncAdapterHandler func(error, *AsyncAdapter) // underlying file descriptor. type AsyncAdapter struct { ioc *IO - fd int pd internal.PollData rw io....
3
3
1
[{"id": "G0", "claim": "Using make([]*internal.PollData, DefaultPendingCount, DefaultPendingCount) would remove the need for the reassignment of the pending slices to their full capacity below.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
talostrading__sonic__140
talostrading/sonic
140
defect
08d3705f7b0635367d7af1c6576aa0a9e94f07c8
b7e0d210093ee5710b9881dafc9c3eaa34b056f4
Handle abnormal WebSocket close on client (fixes #114)
Modified the WebSocket Stream to insert the control frame `closed: 1006` when a client tries to read from a stream after it's been abnormally closed by the server. In my implementation, 'abnormally closed' means the underlying TCP stream was closed without the WebSocket-level closing handshake (we get an `io.EOF`)....
diff --git a/codec/websocket/stream.go b/codec/websocket/stream.go index dbcb02f..b2ca0ac 100644 --- a/codec/websocket/stream.go +++ b/codec/websocket/stream.go @@ -234,6 +234,21 @@ func (s *Stream) NextFrame() (f Frame, err error) { func (s *Stream) nextFrame() (f Frame, err error) { f, err = s.codecConn.ReadNext...
4
4
0
[{"id": "G0", "claim": "The intermediate fPtr variable is unnecessary when building the 1006 close frame in nextFrame and asyncNextFrame; the Set* methods can be invoked directly on f because Go automatically passes the address for pointer receivers.", "category": "maintainability", "verdict": "supported", "priority": ...
null
talostrading__sonic__99
talostrading/sonic
99
defect
7ada51bc7504015f5f99440d5bad4a2caf61643d
8141642487a09783e743af1dcd7f125932a200d4
Dynamically change a udp multicast peer's read buffer
Consider the following scenario: (showcased in the test) - exchange sends data on two multicast groups A and B - we have 2 udp peers, one for A and one for B which are scheduled to read data - these 2 udp peers must share the same read buffers. Initially they are both scheduled to read into `b1`. If peer A reads ...
diff --git a/multicast/peer.go b/multicast/peer.go index 6af3fcda..7ea87059 100644 --- a/multicast/peer.go +++ b/multicast/peer.go @@ -554,10 +554,15 @@ func (p *UDPPeer) unblockIPv4(multicastIP, sourceIP netip.Addr) (err error) { func (p *UDPPeer) unblockIPv6(multicastIP, sourceIP netip.Addr) (err error) { panic("I...
1
1
0
[{"id": "G0", "claim": "If SetAsyncReadBuffer must be called on every reader on each AsyncRead when there are multiple readers, it might be a good idea to introduce a peers manager that provides an AsyncRead which already takes care of this.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "in...
null
tamagui__tamagui__2397
tamagui/tamagui
2,397
defect
0c8b2682ece06aa503b383df458b2e30f790666c
676669095ec8fb89c138545551c5bbdafcbf8fea
feat(web): Support css variable prefixing via environment variable using TAMAGUI_CSS_VARIABLE_PREFIX
This change allows prefixing generated css variable names to avoid collisions with third party/other stylesheets. - Adds a new constant `CSS_VARIBLE_PREFIX` (defaults to `''`) and environment variable `TAMAGUI_CSS_VARIABLE_PREFIX` to set a custom prefix Info: Tried to do it via a property on tamagui config, figu...
diff --git a/packages/core-test/registerVariable.web.test.tsx b/packages/core-test/registerVariable.web.test.tsx index 8d5de707539..d87dd92432a 100644 --- a/packages/core-test/registerVariable.web.test.tsx +++ b/packages/core-test/registerVariable.web.test.tsx @@ -15,3 +15,18 @@ test(`ensures unitless variables in CSS ...
4
3
0
[{"id": "G0", "claim": "The forceStyle \"focusVisible\" addition in packages/tamagui/types/views/Input.d.ts came in while merging with watch running and may be a slip-through from a previous change that does not belong in this PR.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "intr...
null
tamagui__tamagui__858
tamagui/tamagui
858
defect
5f7fa105d7817f368e65435c47c010c2f46cfd07
3848e33c227308ffda9cce3bd968d0dc75d39863
fix(core): make font props work independently
Closes #845 Ignore the branch name... [the plan changed along the way](https://github.com/tamagui/tamagui/issues/845#issuecomment-1486860978).
diff --git a/packages/core-test/getSplitStyles.web.test.tsx b/packages/core-test/getSplitStyles.web.test.tsx index 709509c1815..60768eb1495 100644 --- a/packages/core-test/getSplitStyles.web.test.tsx +++ b/packages/core-test/getSplitStyles.web.test.tsx @@ -3,7 +3,14 @@ process.env.TAMAGUI_TARGET = 'web' import { befor...
1
1
1
[{"id": "G0", "claim": "The new 'fonts get merged properly' test should be made more thorough: check for the right value output (exact value, not just startsWith('var(--')), test non-variant cases, and maybe even nested styled().", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tambo-ai__tambo__1536
tambo-ai/tambo
1,536
defect
97e85ba0eb334a8b3b482a0cff368d2528b91d74
36c707fcc0087b5480546c6f31fcf81bcca039f0
fix(react-sdk): inline reused Zod schemas in JSON Schema conversion
Fixes #1537 Fixes TAM-860 ## Summary - Fixes an issue where reused Zod schemas produced `$ref` references in JSON Schema output instead of inlining the schema - For example, when defining `const dataSchema = z.object({...})` and using it in `z.object({ data: z.array(dataSchema), historicalData: z.array(dataSch...
diff --git a/packages/backend/src/prompt/component-formatting.ts b/packages/backend/src/prompt/component-formatting.ts index e51db601f5..d42b9f77fe 100644 --- a/packages/backend/src/prompt/component-formatting.ts +++ b/packages/backend/src/prompt/component-formatting.ts @@ -67,7 +67,7 @@ const formatComponentProps = ( ...
5
4
1
[{"id": "G0", "claim": "The tests' JSON.stringify(result).not.toContain(\"$ref\") assertions are brittle (they can false-positive if a description or enum value contains the substring) and do not verify the absence of references structurally, so they should be replaced by walking the produced schema object and assertin...
null
tambo-ai__tambo__1777
tambo-ai/tambo
1,777
defect
3e992ab6b25158c7dd1dfe4a2b2e764d952a7a76
697f5b484555221d8b075ac05360226049dc7ac7
chore(api): add NestJS testing helpers
Makes NestJS unit testing patterns explicit and reusable in `apps/api`, including request-scoped provider resolution via `ContextId`. ### Changes - Moved the helpers into `apps/api/src/test/utils/` and split them into per-function files: - `create-testing-module.ts` - `create-test-request-context.ts` - `resolve...
diff --git a/apps/api/AGENTS.md b/apps/api/AGENTS.md index 3a284c0c9a..173eb32fee 100644 --- a/apps/api/AGENTS.md +++ b/apps/api/AGENTS.md @@ -91,6 +91,49 @@ apps/api/src - Cross-module flows (e.g., threads touching projects) via integration tests - Always run `npm run test:cov` when adding meaningful logic to keep...
7
7
3
[{"id": "G0", "claim": "resolveRequestScopedProvider should not default TInput to any or carry the extra TResult generic, since that quietly disables type safety on the provider's instance type.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "createTestRe...
null
tambo-ai__tambo__1802
tambo-ai/tambo
1,802
defect
25243ddc9f465a673046884cc84fa292f5987417
4ec2aec8ebace71bc4b9e0f743869c108c1b281d
docs: switch TS utility types guidance to type-fest
Updates our repo guidance to prefer `type-fest` for advanced TS utility types, and migrates existing `ts-essentials` usage off of it. ### Changes - Update root `AGENTS.md` to recommend `type-fest` repo-wide and clarify when to add it to `dependencies` vs `devDependencies`. - Add a shared `assertUnreachable()` helper ...
diff --git a/AGENTS.md b/AGENTS.md index 39bd5588be..74f9bc0e99 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -157,9 +157,13 @@ eval "$(mise activate)" # Interactive shells only - **Use built-in utility types** (`Pick`, `Omit`, `Partial`, `Required`, `ReturnType`, `Parameters`) - don't reimplement them. - **Avoid `{}` ...
5
2
0
[{"id": "G0", "claim": "Move the type-fest guidance to the root AGENTS.md and migrate the rest of the repository off ts-essentials, not just the react-sdk.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The tambo-thread-provider test's `satisfie...
null
tambo-ai__tambo__1841
tambo-ai/tambo
1,841
defect
63283d7158fc2976bdc50275b7be86d038c79196
758dd38e13026346dacc5a680e619f0a5bafbc31
fix(web): add guard for SLACK_OAUTH_TOKEN in callSlackAPI
# Context Fixes #1840 Currently, the Slack integration uses `SLACK_OAUTH_TOKEN` directly without validating whether it is configured. When the environment variable is missing or empty, Slack API calls fail with an unhelpful **"Bearer undefined"** error. --- ## Changes - **Added Guard Clause** - Added...
diff --git a/apps/web/lib/slack.test.ts b/apps/web/lib/slack.test.ts new file mode 100644 index 0000000000..db3b614c58 --- /dev/null +++ b/apps/web/lib/slack.test.ts @@ -0,0 +1,27 @@ +import { env } from "./env"; +import { callSlackAPI } from "./slack"; + +jest.mock("./env", () => ({ + env: { + SLACK_OAUTH_TOKEN: "...
2
2
0
[{"id": "G0", "claim": "The try-catch wrapper causes double-wrapped errors like \"Slack API call failed: Error: SLACK_OAUTH_TOKEN...\"; callSlackAPI should throw directly, following the inviteInternalUser pattern.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
tambo-ai__tambo__1857
tambo-ai/tambo
1,857
defect
5916cfc426289b204c9df47782561ee9cd52a19c
5e1d11b31639196b92c37f2c5199a8fda2e186f6
test(core): add unit tests for deriveServerKey and isValidServerKey
## Summary - Fixes #1708 This PR adds comprehensive unit test coverage for the `deriveServerKey` and `isValidServerKey` utilities in `mcp-utils.ts`, which previously lacked tests. ## Changes - Added `packages/core/src/mcp-utils.test.ts` - Added test coverage for **`deriveServerKey`**, including: - Common...
diff --git a/packages/core/src/mcp-utlis.test.ts b/packages/core/src/mcp-utlis.test.ts new file mode 100644 index 0000000000..0687fce7af --- /dev/null +++ b/packages/core/src/mcp-utlis.test.ts @@ -0,0 +1,133 @@ +import { deriveServerKey, isValidServerKey } from "./mcp-utils"; + +describe("deriveServerKey", () => { + d...
1
1
1
[{"id": "G0", "claim": "deriveServerKey should return the IP address with dots replaced by underscores (http://127.0.0.1 -> 127_0_0_1, http://255.255.255.254 -> 255_255_255_254) instead of the degenerate key \"0\"; the test expectation should be updated first and the deriveServerKey function changed to match.", "catego...
null
tambo-ai__tambo__1925
tambo-ai/tambo
1,925
defect
e909af2390bc651ade66dc3269b7377edce42048
9145f288aec1c98e5626c0d028814f58d688b664
fix(create-tambo-app): resolve npx not found error on Windows
## Summary - Fix `npx was not found on your PATH` error on Windows by enabling shell mode for Windows platform ## Why On Windows, when `npm create tambo-app` runs, it executes via `cmd.exe` which may not resolve `npx.cmd` correctly through the PATH, especially for non-standard Node.js installations (e.g., Scoop). Addi...
diff --git a/create-tambo-app/src/index.ts b/create-tambo-app/src/index.ts index 339f80ae04..ef685305b7 100644 --- a/create-tambo-app/src/index.ts +++ b/create-tambo-app/src/index.ts @@ -6,6 +6,8 @@ import spawn from "cross-spawn"; const args = ["-y", "tambo@latest", "create-app", ...process.argv.slice(2)]; const chi...
3
2
2
[{"id": "G0", "claim": "Using `shell: true` on Windows in create-tambo-app to spawn npx may introduce shell-injection/quoting and reliability risks when forwarding user-controlled CLI args; invoke `npx.cmd` explicitly on Windows instead of enabling a shell.", "category": "security", "verdict": "supported", "priority": ...
null
tambo-ai__tambo__2256
tambo-ai/tambo
2,256
defect
aebaf6f0507a396df7921ec7851c301757320757
18ee3b39938546d56c1431bcc97900759e2cb7f0
feat(react-sdk): support tamboStreamableHint in V1 event loop
## Summary Fixes TAM-1132 V1 SDK now respects `tamboStreamableHint: true` on tools, executing them incrementally during streaming on each `TOOL_CALL_ARGS` event. In the old SDK, streamable tools fired on every chunk; in V1, the AG-UI event model only executed tools at `awaiting_input`, completely ignoring the annotat...
diff --git a/react-sdk/src/v1/hooks/use-tambo-v1-send-message.test.tsx b/react-sdk/src/v1/hooks/use-tambo-v1-send-message.test.tsx index 4289685f9f..5fea9b67f4 100644 --- a/react-sdk/src/v1/hooks/use-tambo-v1-send-message.test.tsx +++ b/react-sdk/src/v1/hooks/use-tambo-v1-send-message.test.tsx @@ -1325,3 +1325,249 @@ d...
5
2
1
[{"id": "G0", "claim": "executeStreamableToolCall() is awaited inside the per-event streaming loop, which backpressures the whole event stream, and calling it on every parseable chunk can repeatedly execute the same tool; use fire-and-forget execution with per-toolCallId dedupe/throttling instead.", "category": "perfor...
null
tambo-ai__tambo__2260
tambo-ai/tambo
2,260
defect
b5c7f3a5b04b9196d60bd8a9554bf52a407aa16b
9a1b57319c60773011450a0ad6d15caf84b78a54
feat(api,react-sdk): wire up toolChoice support end-to-end
## Summary - **Backend**: Decision loop now handles `"required"` and `"none"` tool choice keywords in addition to specific tool names - **Backend**: V1 service converts `dto.toolChoice` and passes it through `advanceThread` to the LLM - **React SDK**: Added `toolChoice` to `SendMessageOptions`, `SubmitOptions`, and `Cr...
diff --git a/apps/api/src/v1/v1-tool-conversions.test.ts b/apps/api/src/v1/v1-tool-conversions.test.ts index 2b0aa3d77a..e9a665b497 100644 --- a/apps/api/src/v1/v1-tool-conversions.test.ts +++ b/apps/api/src/v1/v1-tool-conversions.test.ts @@ -3,6 +3,7 @@ import { convertV1ToolsToInternal, convertV1ComponentToInte...
5
3
0
[{"id": "G0", "claim": "The stray/duplicate JSDoc opener (an extra /**) right before the new ToolChoice type in use-tambo-v1-send-message.ts should be removed so there is a single coherent JSDoc block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
tambo-ai__tambo__2264
tambo-ai/tambo
2,264
defect
aafb8abcf390d0c5ff1b3ddebcad6b4933e1ab15
c9699205d35b12b1b32f3aae25c9cc115b171768
feat(react-sdk,api): support initialMessages in V1 stack and add maxCalls to tool DTO
## Summary - **TAM-1142**: Implements full `initialMessages` support across the V1 stack — API saves them to the thread on creation, React SDK accepts them as a provider prop, seeds the placeholder thread for optimistic UI, and passes them through on first message send. - **TAM-1143 (DTO only)**: Adds `maxCalls` field...
diff --git a/apps/api/src/v1/__tests__/v1.service.test.ts b/apps/api/src/v1/__tests__/v1.service.test.ts index 690d74ca5c..fef42b0dd5 100644 --- a/apps/api/src/v1/__tests__/v1.service.test.ts +++ b/apps/api/src/v1/__tests__/v1.service.test.ts @@ -43,6 +43,7 @@ jest.mock("@tambo-ai-cloud/db", () => ({ markRunCancel...
7
1
0
[{"id": "G0", "claim": "convertV1InputMessageToUnsaved() forces every seeded initial message to the `user` role, which can corrupt client-provided history if other roles are allowed or expected.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "createT...
null
tambo-ai__tambo__2287
tambo-ai/tambo
2,287
defect
bbcf8ed1e0fe2818ab0f90ca3595dafaacbbc8a1
04c6ca8abe321f681833ac3688714e94da622905
fix(v1): replace throttle for streamable tools
- Replace trailing-only keyed debounce with a leading+trailing keyed throttle (`createKeyedThrottle`, previously `createKeyedDebounce`) - Reduce default interval from 150ms to 100ms The old trailing debounce never fired during streaming because LLM chunks (~20-50ms apart) kept resetting the timer. Tools only executed ...
diff --git a/react-sdk/src/v1/utils/keyed-debounce.test.ts b/react-sdk/src/v1/utils/keyed-debounce.test.ts index bc7c060e1d..d6c6a338da 100644 --- a/react-sdk/src/v1/utils/keyed-debounce.test.ts +++ b/react-sdk/src/v1/utils/keyed-debounce.test.ts @@ -9,74 +9,180 @@ describe("createKeyedDebounce", () => { jest.useR...
9
5
1
[{"id": "G0", "claim": "The chained startCooldown() implementation makes timing behavior and flush() guarantees hard to reason about; refactor to a single timer per key that does not chain by calling startCooldown() from inside the callback.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "in...
null
tambo-ai__tambo__2292
tambo-ai/tambo
2,292
defect
aec371aa99da5b6e75129038278c19d25f3c3462
06784bbd0221f01fa55e86adee1bb12a5beb9704
docs(react-sdk): update V1 SDK reference for new features
## Summary ### SDK changes - Fix V1 export: `withTamboInteractable` was incorrectly aliased as `withInteractable` in `@tambo-ai/react/v1` — now exported under its real name - Re-export `useTamboContextAttachment` from `@tambo-ai/react/v1` so users don't need to import from the base path - Fix `propStatus` return type ...
diff --git a/docs/content/docs/reference/react-sdk-v1/hooks.mdx b/docs/content/docs/reference/react-sdk-v1/hooks.mdx index 163c9134ef..e9813a0ee8 100644 --- a/docs/content/docs/reference/react-sdk-v1/hooks.mdx +++ b/docs/content/docs/reference/react-sdk-v1/hooks.mdx @@ -44,6 +44,9 @@ function Chat() { switchThread...
5
3
3
[{"id": "G0", "claim": "The migration doc's instruction to import `useTamboContextAttachment` from the base SDK (`@tambo-ai/react`) while discussing V1 lacks an explanation of the import-path split and confirmation that the hook works under `TamboV1Provider`, which may mislead readers into assuming it is a mistake and ...
null
tambo-ai__tambo__2293
tambo-ai/tambo
2,293
defect
bbcf8ed1e0fe2818ab0f90ca3595dafaacbbc8a1
e383f9abb2e6cda0600d906041f71ccb516cb1ff
feat(api): require userKey or bearer token in all V1 thread routes
## Summary - Adds `requireUserKey` enforcement to 5 V1 routes that were missing it: DELETE thread, GET messages list, GET message, DELETE run (cancel), POST component state - Introduces `V1ThreadInProjectGuard` that scopes thread lookups by the user's contextKey instead of using `ANY_CONTEXT_KEY`, ensuring threads are...
diff --git a/apps/api/src/v1/__tests__/v1-thread-in-project-guard.test.ts b/apps/api/src/v1/__tests__/v1-thread-in-project-guard.test.ts new file mode 100644 index 0000000000..61e0ec6f9e --- /dev/null +++ b/apps/api/src/v1/__tests__/v1-thread-in-project-guard.test.ts @@ -0,0 +1,271 @@ +import { BadRequestException, Exe...
11
6
3
[{"id": "G0", "claim": "The guard only rejects the exact empty string on the selected query/body value, so whitespace-only userKey values pass the required-context check and bearer context keys are not trimmed/validated the same way; both sources should be normalized and validated consistently.", "category": "correctne...
null
tambo-ai__tambo__2295
tambo-ai/tambo
2,295
defect
6744de34a36704db3dfd652906832b2222049a51
dc69f2774085cffa6117b23dbbefa5fe1d67b70b
fix(api,react-sdk): route V1 initialMessages through ThreadsService and support system/assistant roles
## Summary - **Route V1 `createThread` through `ThreadsService`** instead of direct DB operations (`operations.createThread` + `operations.addMessage`), so initialMessages get system prompt injection, validation, and `customInstructions` logic automatically - **Support system and assistant roles** in `initialMessages`...
diff --git a/apps/api/src/v1/__tests__/v1-conversions.test.ts b/apps/api/src/v1/__tests__/v1-conversions.test.ts index 17833dccc1..f0b82caa03 100644 --- a/apps/api/src/v1/__tests__/v1-conversions.test.ts +++ b/apps/api/src/v1/__tests__/v1-conversions.test.ts @@ -11,9 +11,11 @@ import { contentToV1Blocks, contentP...
5
1
1
[{"id": "G0", "claim": "V1InitialMessageDto advertises tool_result content blocks while convertV1InitialMessageToMessageRequest() silently filters them out, so the API contract mismatches behavior; tool_result should either be rejected at validation time (preferred) or its acceptance and dropping clearly documented.", ...
null
tambo-ai__tambo__2298
tambo-ai/tambo
2,298
defect
ca1d86a5d2b1b9963ab6c93e04e88ed47db37190
06044d98cf60dea192f5ae3fd036222b2696ec18
fix(v1 sdk): allow component state outside generated component
fixes error where usage of `useTamboV1ComponentState` within an interactable caused an error because there was no component context available. 1. component-renderer.tsx — Added useV1ComponentContentOptional() which returns null instead of throwing when there's no ComponentContentContext provider. ...
diff --git a/react-sdk/src/v1/hooks/use-tambo-v1-component-state.test.tsx b/react-sdk/src/v1/hooks/use-tambo-v1-component-state.test.tsx index c11ac4a29d..3dd1743ffc 100644 --- a/react-sdk/src/v1/hooks/use-tambo-v1-component-state.test.tsx +++ b/react-sdk/src/v1/hooks/use-tambo-v1-component-state.test.tsx @@ -11,7 +11,...
4
4
2
[{"id": "G0", "claim": "The missing-context test only asserts the returned initial value and should also assert that no side effects occur (no setInteractableState call with an empty component id and no client/server update calls), since a regression doing either would still pass.", "category": "testing", "verdict": "s...
null
tambo-ai__tambo__2304
tambo-ai/tambo
2,304
defect
5697825d6f542518a0ff621c5106187a9644c643
b682690574a42a7b520a586dd43b0424f15efe1b
fix(react-sdk): send userKey on all v1 API routes
- Bump @tambo-ai/typescript-sdk to 0.91.0 (adds userKey to previously missing endpoint params) - Set defaultQuery: { userKey } on the TamboAI client so GET endpoints (threads.list, threads.retrieve, messages.list, suggestions.list) automatically include it - Pass userKey explicitly to runs.delete() in cancelRun —...
diff --git a/react-sdk/package.json b/react-sdk/package.json index 84f69ebc53..af53209481 100644 --- a/react-sdk/package.json +++ b/react-sdk/package.json @@ -80,7 +80,7 @@ "@modelcontextprotocol/sdk": "^1.26.0", "@standard-community/standard-json": "^0.3.5", "@standard-schema/spec": "^1.1.0", - "@tam...
5
3
3
[{"id": "G0", "claim": "The @tambo-ai/typescript-sdk version bump must be applied across the whole repo, not only in react-sdk/package.json, and package-lock.json must be updated.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `initialMessages a...
null
tambo-ai__tambo__2328
tambo-ai/tambo
2,328
defect
0aac70b23da7ae51d9d449b3692b765570af44f9
6389f530ce7e5dec9c27ddcd5d648f8f4c6e9628
feat(react-sdk): expose updateThreadName for manual thread renaming
## Summary Adds `updateThreadName(threadId, name)` function to the `useTambo()` hook, enabling manual thread renaming in UI components. Implements this via the **V1 API** (not the legacy beta API). ## Changes ### Backend (V1 API) - **Added PATCH `/v1/threads/:threadId` endpoint** - New V1 endpoint for updating threa...
diff --git a/react-sdk/src/v1/hooks/use-tambo-v1.test.tsx b/react-sdk/src/v1/hooks/use-tambo-v1.test.tsx index cc03129a4c..81fa355ed1 100644 --- a/react-sdk/src/v1/hooks/use-tambo-v1.test.tsx +++ b/react-sdk/src/v1/hooks/use-tambo-v1.test.tsx @@ -1202,4 +1202,26 @@ describe("useTambo", () => { consoleWarnSpy.moc...
6
3
2
[{"id": "G0", "claim": "updateThreadName only calls the API and does not update local thread state, so consumers relying on SDK state will likely see a stale thread name until a refetch; the hook should update in-memory thread state on success (or document that callers must update their own state).", "category": "corre...
null
tambo-ai__tambo__2339
tambo-ai/tambo
2,339
defect
0e32eb9ef1d53a7a9ad08bf86c75e02b56c9ae33
f31413c96d9529d60a7f9dc452c1609574109360
fix(web): fix MCP OAuth flow for Streamable HTTP servers
## Summary - Fix MCP OAuth flow for servers that require auth over Streamable HTTP (e.g., Linear) - Add per-request fetch timeouts to both the `authorizeMcpServer` endpoint (5s) and the OAuth callback route (10s) to prevent indefinite hangs during OAuth discovery - Fix missing `baseUrl` in OAuth callback that caused to...
diff --git a/apps/web/app/oauth/callback/route.ts b/apps/web/app/oauth/callback/route.ts index 7e44d08548..1fc4286665 100644 --- a/apps/web/app/oauth/callback/route.ts +++ b/apps/web/app/oauth/callback/route.ts @@ -58,13 +58,23 @@ export async function GET(request: NextRequest) { clientInformation: oauthClient...
4
2
1
[{"id": "G0", "claim": "The new fetch timeout wrappers overwrite any existing init.signal instead of composing with it, which can drop caller-provided cancellation.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "AbortSignal.timeout() may be unavaila...
null
tambo-ai__tambo__2359
tambo-ai/tambo
2,359
defect
c014c10c8d0ad35777323e39b8226c9cb41d240e
7866e4c66347531ab0f06766a672ad18e4b67965
fix(api): sanitize componentState JSON instead of base64 encoding
## Summary Tighten up how `componentState` is embedded as JSON inside the `<component_state>...</component_state>` wrapper for LLM context: clarify the tag semantics in the system prompt, harden the shared sanitizer, and make the tests less brittle. ## Changes - Core: add `stringifyJsonForMarkupText()` (and keep `st...
diff --git a/packages/backend/src/util/thread-to-model-message-conversion.test.ts b/packages/backend/src/util/thread-to-model-message-conversion.test.ts index 7eafcb95c3..80a5dd89bd 100644 --- a/packages/backend/src/util/thread-to-model-message-conversion.test.ts +++ b/packages/backend/src/util/thread-to-model-message-...
13
7
3
[{"id": "G0", "claim": "The `Object.keys(message.componentState).length > 0` emptiness guard treats arrays, Dates, Maps/Sets and other non-plain objects in surprising ways; it should enforce plain objects only or use a more intention-revealing emptiness check.", "category": "correctness", "verdict": "opposed", "priorit...
null
tambo-ai__tambo__2361
tambo-ai/tambo
2,361
defect
e4d6d08ed7e52cb45def530d23b1c89cba1a1a89
0ae7b84d04ab49d332647cffd4eeee2ea0717513
fix(react-sdk): unstrictify tool call args in the SDK
## Summary - Strip null optional params from tool call args in the SDK during streaming, using the original tool schemas from the registry - Unstrictification runs on every `TOOL_CALL_ARGS` event (partial parse) and `TOOL_CALL_END` (final parse), so the reducer always emits schema-valid values - Add `unstrictifyToolCa...
diff --git a/apps/api/src/v1/v1-client-tools.test.ts b/apps/api/src/v1/v1-client-tools.test.ts index 99860746fa..9fc3285075 100644 --- a/apps/api/src/v1/v1-client-tools.test.ts +++ b/apps/api/src/v1/v1-client-tools.test.ts @@ -1,4 +1,5 @@ import { EventType, type BaseEvent } from "@ag-ui/client"; +import { JSONSchema7...
6
6
3
[{"id": "G0", "claim": "unstrictifyToolCallParamsFromSchema() passes through all non-schema keys instead of only server-injected `_tambo_*` ones, which can silently propagate hallucinated or typo'd tool args into client-side tool execution; pass-through should be narrowed to an explicit allowlist.", "category": "correc...
null
tambo-ai__tambo__2435
tambo-ai/tambo
2,435
defect
dd89e15e197e4d3357d0f933f1a7398a1a360c4b
55f0833aecc0b4feb4605253f6064bf62a7b8ee7
fix(react-ui-base): render content blocks in natural order from model response
## Summary - Fixes text after a tool call rendering above the tool call UI when using thinking models - With thinking models, the content array is `[tool_use, text]` but thread-content hardcoded render order as `MessageContent → ToolcallInfo`, pulling all text above all tool calls - Now iterates `message.content` in or...
diff --git a/packages/react-ui-base/src/toolcall-info/root/get-tool-status-message.ts b/packages/react-ui-base/src/toolcall-info/root/get-tool-status-message.ts index 41d6be65bd..347bc5869a 100644 --- a/packages/react-ui-base/src/toolcall-info/root/get-tool-status-message.ts +++ b/packages/react-ui-base/src/toolcall-in...
10
8
2
[{"id": "G0", "claim": "getOrderedContentGroups() only preserves ordering for text/resource and tool_use while other content block types are ignored in the ordered pass, which can break correctness for interleaved component/tool_result/image_url content, and the groups.length === 0 fallback can misfire for messages con...
null
tambo-ai__tambo__2479
tambo-ai/tambo
2,479
defect
949499174d2a0cb0870489626c82edaaa88d841a
1e48e9878909aa1ba9e94008edf75f910fcf4428
feat(cli): add CLI telemetry via posthog-node SDK
## Summary Add anonymous CLI telemetry so we can understand how the CLI is being used and improve the developer experience. ## How it works 1. `initTelemetry()` runs at CLI startup — creates a `posthog-node` client and loads/creates an anonymous UUID 2. Commands call `trackEvent()` which calls `client.capture()` to ...
diff --git a/apps/web/app/providers.tsx b/apps/web/app/providers.tsx index 0f4898cd57..a62928558b 100644 --- a/apps/web/app/providers.tsx +++ b/apps/web/app/providers.tsx @@ -9,7 +9,8 @@ import { useEffect } from "react"; if (typeof window !== "undefined") { if (env.NEXT_PUBLIC_POSTHOG_KEY) { posthog.init(env....
10
8
1
[{"id": "G0", "claim": "The /ingest/:path* rewrite forwards all /ingest traffic to PostHog and creates an SSRF-ish egress path if untrusted input ever influences /ingest requests, so the rewrites should be scoped to specific PostHog endpoints or documented with a justification.", "category": "security", "verdict": "sup...
null
tambo-ai__tambo__2501
tambo-ai/tambo
2,501
defect
c47336e8c506fcd10259b4754876a97937289b55
7427e10195f987cf39f6767caad9a5866d3e45b0
fix(api): support Gemini 3 tool calls
Gemini 3 models require a `thought_signature` on function call (tool-call) prompt parts when sending tool results back to the model. We were dropping that provider metadata, which caused Gemini tool calls to fail with a 400 and surface in the UI as “Error in streaming response”. ### Changes - Capture `providerMetadat...
diff --git a/apps/api/src/threads/threads.service.ts b/apps/api/src/threads/threads.service.ts index 9407cfb472..1f9cbac1c4 100644 --- a/apps/api/src/threads/threads.service.ts +++ b/apps/api/src/threads/threads.service.ts @@ -1729,6 +1729,39 @@ export class ThreadsService { legacyDecision, ); + ...
10
1
0
[{"id": "G0", "claim": "getToolCallProviderOptions validates only the google.thoughtSignature sub-path but returns the entire stored providerOptions object, so unvalidated provider keys pass through and are reattached on replay; validate the full shape or reconstruct the return value from only the validated fields.", "...
null
tambo-ai__tambo__2577
tambo-ai/tambo
2,577
defect
03ab81025c94120c1e14a422591f8081eac37d3c
5d5465066adfea618cd76d26b4770d023cff358f
feat(react-ui-base): add aria-current and default children to ThreadHistory.Item
## Summary - Add `aria-current="true"` on active thread items for accessibility - Render `thread.name ?? thread.id` as default children when none are provided (explicit children still take precedence) - Normalize `data-active` to use string `"true"` instead of truthy value ## Test plan - [x] Existing tests updated and...
diff --git a/packages/react-ui-base/src/thread-history/item/thread-history-item.tsx b/packages/react-ui-base/src/thread-history/item/thread-history-item.tsx index e05da61cd6..58828973a6 100644 --- a/packages/react-ui-base/src/thread-history/item/thread-history-item.tsx +++ b/packages/react-ui-base/src/thread-history/it...
6
3
2
[{"id": "G0", "claim": "The aria-current usage on the <button> may be semantically off: the string token \"true\" should be reconsidered for a more specific token (or JSX boolean) or aria-pressed, depending on the intended interaction pattern.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "in...
null
tambo-ai__tambo__2620
tambo-ai/tambo
2,620
defect
1159b8cc0be23165d2d6ae5e409f5eb1867c62af
716d4c00c53c82c74b70b7e9afd86ae8820196f4
refactor(react-sdk): add registry-level tool ownership for interactable components
## Summary - Removes hardcoded tool naming conventions (`perComponentToolNames`, `GLOBAL_INTERACTABLE_TOOL_NAMES`) from the interactable provider - Adds local `registerToolForComponent` and `unregisterToolsForComponent` helpers inside the interactable provider for ownership-based cleanup - Registry provider stays fully...
diff --git a/react-sdk/src/providers/tambo-interactable-provider-partial-updates.test.tsx b/react-sdk/src/providers/tambo-interactable-provider-partial-updates.test.tsx index 0475e6ff60..d0248678de 100644 --- a/react-sdk/src/providers/tambo-interactable-provider-partial-updates.test.tsx +++ b/react-sdk/src/providers/ta...
4
4
2
[{"id": "G0", "claim": "unregisterToolsForComponent depends on toolComponentOwnership state, so its identity changes whenever ownership changes and the interactable provider's useEffect (which calls registerToolForComponent and lists the callback as a dependency) re-runs indefinitely.", "category": "correctness", "verd...
null
tambo-ai__tambo__2638
tambo-ai/tambo
2,638
defect
ec5d42e8f67a756706212f92e7de2060360a3484
5b1ea5514eab3fecf6842a7a2ae5346e0a8452df
feat(cli): add Expo framework detection and support
## Summary - Adds Expo as a detected framework in the CLI (priority: Next.js > Expo > Vite) - Uses `EXPO_PUBLIC_` env prefix for API key (`EXPO_PUBLIC_TAMBO_API_KEY`) - Detection signals: `expo` in package.json deps, `app.json` with `expo` key, or Expo dynamic config files (`app.config.ts`, `app.config.js`) - `tambo i...
diff --git a/cli/src/commands/add/index.ts b/cli/src/commands/add/index.ts index 522540cb4e..bb28db4529 100644 --- a/cli/src/commands/add/index.ts +++ b/cli/src/commands/add/index.ts @@ -6,6 +6,10 @@ import { LEGACY_COMPONENT_SUBDIR, } from "../../constants/paths.js"; import { resolveComponentDependencies } from "...
6
6
3
[{"id": "G0", "claim": "Expo projects see a misleading app/layout.tsx file location printed before the Expo-specific snippet because the entry-file-path logic has no Expo branch; the Expo early return should be moved before that logic so the wrong path is never computed or printed.", "category": "correctness", "verdict...
null
tambo-ai__tambo__2709
tambo-ai/tambo
2,709
defect
f4236c80769e47ffb5d09140f18b21e33bfb9ed2
171d45589037dab0b83dc6a0640eb41e66d88e3f
fix(react-sdk): retry suggestions query on 404 to handle message persistence race
## Summary - Add retry logic (up to 3 attempts, exponential backoff) to the suggestions list query for 404 errors - Handles the race condition where the assistant message hasn't been persisted to the DB yet when suggestions are requested immediately after a run completes Fixes TAM-1421 ## Problem <img width=...
diff --git a/react-sdk/src/v1/hooks/use-tambo-v1-suggestions.ts b/react-sdk/src/v1/hooks/use-tambo-v1-suggestions.ts index bab91142fb..73fe18bbd9 100644 --- a/react-sdk/src/v1/hooks/use-tambo-v1-suggestions.ts +++ b/react-sdk/src/v1/hooks/use-tambo-v1-suggestions.ts @@ -234,7 +234,15 @@ export function useTamboSuggesti...
1
1
0
[{"id": "G0", "claim": "Prefer an `instanceof APIError` check over the `(error as { status?: number })` cast in the retry callback, as the SDK already exports APIError and the check is more self-documenting and type-safe.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
tambo-ai__tambo__2725
tambo-ai/tambo
2,725
defect
c486010bd41774283cc69988988c6c0b730aef67
fd12a905142f364de466f0f789299a10c319d0ce
fix(react-sdk): fix interactable selection not reaching the model
## Summary - **Fixed `isSelected` not being sent to the model**: The context helper was reading `comp.isSelectedForInteraction` (which didn't exist on the component object) instead of `comp.isSelected`. The field was always `false` regardless of user selection. - **Renamed output field to `isSelected`** to match the s...
diff --git a/apps/web/components/observability/utils.ts b/apps/web/components/observability/utils.ts index 50bc903958..c100b94edd 100644 --- a/apps/web/components/observability/utils.ts +++ b/apps/web/components/observability/utils.ts @@ -426,7 +426,7 @@ export interface MessageWithContext { /** * Extracts selecte...
1
1
1
[{"id": "G0", "claim": "In the handleSend path, setInteractableSelected is async React setState and may not propagate before submit() reads context through a closure-captured helper, so the selection set here might not be visible when context is gathered (worth verifying, and if it fails, pass the selection imperativel...
null
tambo-ai__tambo__2727
tambo-ai/tambo
2,727
defect
1a6589de22fd60315381c2ecf07ad8a70649e15e
d7ae570d9696d344c985eeb7b0b28db31075d9b4
feat(cli): auto-detect non-interactive auth and always open browser
## Summary - CLI always opens the browser for device auth, even in non-interactive environments (agents, CI) - In non-interactive mode, the raw auth URL is automatically printed to stdout for machine parsing - User code is copied to clipboard in all environments - Auth polls in the foreground (up to 15 minutes) instead...
diff --git a/cli/AGENTS.md b/cli/AGENTS.md index a37909cfa7..c0b67b463b 100644 --- a/cli/AGENTS.md +++ b/cli/AGENTS.md @@ -78,9 +78,14 @@ tambo list --yes **Authenticate (for --project-name/--project-id flows):** ```bash -tambo auth login --no-browser # Prints URL instead of opening browser +tambo auth login # Op...
6
6
0
[{"id": "G0", "claim": "The SKILL.md example timeout of e.g. 10 minutes is shorter than the documented auth window of up to 15 minutes, which can cause agent runs to time out before auth completes; use an example timeout of at least 15 minutes.", "category": "documentation", "verdict": "supported", "priority": "P2", "s...
null
tambo-ai__tambo__2738
tambo-ai/tambo
2,738
defect
c61c4b9e77bc99ab789c6713d45f0494d87fe334
58813a198941bf484f60d4d94499cb8d2ab454cd
fix(web): auto-slugify skill names and show readable validation errors
## Summary - Auto-slugify skill names so users can type "Code Review Assistant" and it saves as `code-review-assistant` - Show a "Will be saved as:" preview when the typed name differs from its kebab-case slug - Extract human-readable error messages from tRPC zod validation errors in the skill form toast ## Why Fixes ...
diff --git a/apps/web/components/dashboard-components/project-details/skill-form.test.tsx b/apps/web/components/dashboard-components/project-details/skill-form.test.tsx index 406cb6849b..b8f176bdee 100644 --- a/apps/web/components/dashboard-components/project-details/skill-form.test.tsx +++ b/apps/web/components/dashbo...
4
4
2
[{"id": "G0", "claim": "The trim regexes in toSkillSlug depend on uncontrolled input and may run slow on strings with many repetitions of '-'.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The trim regexes in toSkillSlug depend on uncontrolled input a...
null
tambo-ai__tambo__2740
tambo-ai/tambo
2,740
defect
0630719889a7254d6884f74c8d10503f7a3f0d28
04a8c62ecb1e5b07bc3a8b04cebbff140821983f
fix(core): skip skill injection for models that don't support skills
## Summary - Adds per-model `supportsSkills` flag (required) to model configs so skill injection is gated on both provider **and** model - AI SDK client silently skips skill injection for unsupported models (warns once per model combo) - Web UI and CLI surface model-level skill support warnings ## Why Certain OpenAI m...
diff --git a/apps/web/components/dashboard-components/project-details/skills-section.tsx b/apps/web/components/dashboard-components/project-details/skills-section.tsx index 4b65d18ece..fd258f02c1 100644 --- a/apps/web/components/dashboard-components/project-details/skills-section.tsx +++ b/apps/web/components/dashboard...
5
4
1
[{"id": "G0", "claim": "The console.warn in modelSupportsSkills fires on every call with a model unlisted in the config (e.g. custom openai-compatible setups), producing log noise on every request, so it should be removed or deduplicated as warnedSkillsCombos did in ai-sdk-client.ts.", "category": "performance", "verdi...
null
tambo-ai__tambo__2756
tambo-ai/tambo
2,756
defect
565cf28be2d1b6af3655616b3d72959cd4551d59
60e1824ee3863d8ff192a6678857aefadec85b6f
fix(backend): suppress skill tool calls and add privacy prompt
## Summary - Suppress provider-managed skill tool calls (`code_execution`, `shell`) from the streaming pipeline so internal provider details (SKILL.md paths, command types) never reach clients - Add system prompt instructions telling the LLM to mention which skill it's using by name while keeping internal details opaqu...
diff --git a/devdocs/solutions/architecture/provider-managed-skill-tool-calls.md b/devdocs/solutions/architecture/provider-managed-skill-tool-calls.md new file mode 100644 index 0000000000..c752375a11 --- /dev/null +++ b/devdocs/solutions/architecture/provider-managed-skill-tool-calls.md @@ -0,0 +1,105 @@ +--- +title: ...
6
6
1
[{"id": "G0", "claim": "The skill-suppression check is provider-agnostic (a shared set of \"shell\" and \"code_execution\" for every skills-enabled run) and may silently swallow valid user-registered tools that happen to share a name with the *other* provider's skill tool (e.g. a user tool named \"shell\" on Anthropic)...
null
tamboui__tamboui__121
tamboui/tamboui
121
defect
a899c8a594d3f6086cbade942b8173b0ff53036d
fbb48b7bddaf402a9a37eac87ebbc7529c3d7d7c
fix: Introduce proper UI thread
This commit reworks how we render, so that we guarantee that rendering is done only on the UI thread. Resize events, typically, which could be done asynchronously in a different thread, were causing problems, as well as scheduled events. To fix this, this introduces the concept of a proper UI thread and UIRunnable. ...
diff --git a/AGENTS.md b/AGENTS.md index 6e6ec5c57..2c52676da 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -96,12 +96,22 @@ class MyApp extends ToolkitApp { ### Event System - `TuiRunner` provides the main event loop with `EventHandler` callback -- Event types: `KeyEvent`, `MouseEvent`, `TickEvent`, `ResizeEvent` +- E...
5
2
0
[{"id": "G0", "claim": "The UI-thread check method should be named isRenderThread() or isUIDispatchThread() instead of isUiThread() (naming asked as a question, with isRenderThread suggested).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The d...
null
tamboui__tamboui__271
tamboui/tamboui
271
defect
82db7b5e193028276be666c534734ce9cde8beee
a76f4c46073139c0c1632be8de15a6ad04c1de8f
Fix month names in Monthly
Monthly when created with custom polish locale had two problems with it i.e. for the month of June it rendered "czerwca" instead of "Czerwiec". So wrong declination and wrong letter casing. The former could be solved by changing TextStyle to FULL_STANDALONE and the latter with the help of the new method which capitaliz...
diff --git a/tamboui-widgets/src/main/java/dev/tamboui/widgets/calendar/Monthly.java b/tamboui-widgets/src/main/java/dev/tamboui/widgets/calendar/Monthly.java index ee76d4824..d4bb91810 100644 --- a/tamboui-widgets/src/main/java/dev/tamboui/widgets/calendar/Monthly.java +++ b/tamboui-widgets/src/main/java/dev/tamboui/w...
2
2
2
[{"id": "G0", "claim": "The month header's capitalization is locale-specific and should not blanket-uppercase the standalone month name; the uppercasing must be locale-correct for the UI heading context.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":...
null
tamboui__tamboui__275
tamboui/tamboui
275
defect
3ed3cf9fe52d730a4b154c0289aa1837b73a67f1
3a2010ce803e56286e2df8f6fde9228e80c543b1
Add locale-based weekday abbreviations to Monthly
Continuing my quest on localizing the calendar widget. This time the weekday abbreviations which were hardcoded english abbreviations.
diff --git a/tamboui-widgets/src/main/java/dev/tamboui/widgets/calendar/Monthly.java b/tamboui-widgets/src/main/java/dev/tamboui/widgets/calendar/Monthly.java index 159f1c4c4..d9ab814c3 100644 --- a/tamboui-widgets/src/main/java/dev/tamboui/widgets/calendar/Monthly.java +++ b/tamboui-widgets/src/main/java/dev/tamboui/w...
1
1
0
[{"id": "G0", "claim": "Consider using the Java locale SHORT or NARROW TextStyle directly instead of explicitly truncating to a two-character width, or use NARROW instead of FULL_STANDALONE as the basis for the two-character limit.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}...
null
tamboui__tamboui__32
tamboui/tamboui
32
defect
fa213394c36d9a16c14770e05778355507933a33
9419fbde4f71e8654b11c3b17c0dee8888d959ee
Fix border rendering
Fixes #23
diff --git a/tamboui-widgets/src/main/java/dev/tamboui/widgets/block/Block.java b/tamboui-widgets/src/main/java/dev/tamboui/widgets/block/Block.java index 5be274ca4..e9479d258 100644 --- a/tamboui-widgets/src/main/java/dev/tamboui/widgets/block/Block.java +++ b/tamboui-widgets/src/main/java/dev/tamboui/widgets/block/Bl...
2
2
1
[{"id": "G0", "claim": "The new QUADRANT_INSIDE test should assert with assertThat(buffer).isEqualTo(expected) instead of per-symbol assertions.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Running the demo gives the same weird corners - the QUADRANT_...
null
tamboui__tamboui__82
tamboui/tamboui
82
defect
0d510df605459c7e9b63cdf2952a43361d6d8222
39fdd2a1bdf1db190f86c251f4a18c5a7e4acbac
fix: Overflow.CLIP didn't clip
I wasn't sure if it was me misusing the API but after checking, I saw that the CLIP mode actually didn't clip. Actually, it clipped at the terminal width. This caused weird behavior where having a text item inside a paragraph/panel could write _outside_ the panel.
diff --git a/tamboui-toolkit/src/main/java/dev/tamboui/toolkit/elements/ListContainer.java b/tamboui-toolkit/src/main/java/dev/tamboui/toolkit/elements/ListContainer.java index 0871821cb..07a2b968d 100644 --- a/tamboui-toolkit/src/main/java/dev/tamboui/toolkit/elements/ListContainer.java +++ b/tamboui-toolkit/src/main/...
1
1
0
[{"id": "G0", "claim": "The clipOverflow test's per-cell buffer assertions could be rewritten with AssertJ buffer assertions (assertj for buffer) for readability and more informative error messages.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tamboui__tamboui__90
tamboui/tamboui
90
defect
87f8c54e32a9f71bcd2ca0b16119ba6a38e2b953
96a145d5d9d823788c465ce3227cab9812392bfb
feat: core capability reporting by core jar
This adds basic diagnostic printing to tamboui-core that when run you get something like: ``` TamboUI capability report == tamboui-core:properties java.version: 25.0.1 java.vendor: Eclipse Adoptium os.name: Mac OS X os.arch: aarch64 os.version: 26.0 tamboui.backend: null == tamboui-core:environment TER...
diff --git a/tamboui-core/build.gradle.kts b/tamboui-core/build.gradle.kts index 344ffdae8..406f78efe 100644 --- a/tamboui-core/build.gradle.kts +++ b/tamboui-core/build.gradle.kts @@ -5,6 +5,12 @@ plugins { description = "Core types and abstractions for TamboUI TUI library" +tasks.named<org.gradle.jvm.tasks.Jar>(...
13
10
2
[{"id": "G0", "claim": "Rename the 'properties' section to 'system properties' so values like tamboui.backend are not mistaken for the effective selected backend.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the leftover commented-out block of f...
null
tanghaibao__jcvi__734
tanghaibao/jcvi
734
defect
bbb9dd93d56a1a0198abc0534f5c2f49080dfc5e
4ccdec7c2b9372dcda76a95b338ee7cc14681417
Add Black formatting action
Format all .py files in './jcvi' and './tests' with ~~Ruff~~ **Black** upon commit to a PR. Closes #721
diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml new file mode 100644 index 00000000..f807cfaf --- /dev/null +++ b/.github/workflows/ruff.yml @@ -0,0 +1,23 @@ +name: Ruff Formatting +on: [pull_request] +jobs: + ruff: + if: ${{ github.actor != 'dependabot[bot]' }} # Do not run on commits created ...
1
1
1
[{"id": "G0", "claim": "The ruff formatting action added by this PR would format the codebase in a style that does not match the existing Black formatting, and the maintainer asks that the ruff style be set to match Black so that his tooling does not have to change.", "category": "design", "verdict": "supported", "prio...
null
tangle-network__tangle__1046
tangle-network/tangle
1,046
defect
47ef523ad85ae80b593caa81518f7260a7b15c33
0f942f29bf987c0e14735d9530618167618ef7b4
chore: change credits to on-delegate
**Summary of changes** Changes introduced in this pull request: - Change credits awarded to on-delegate **Reference issue to close (if applicable)** Closes #1044
diff --git a/pallets/multi-asset-delegation/src/functions/delegate.rs b/pallets/multi-asset-delegation/src/functions/delegate.rs index 34729a71a..3203ad373 100644 --- a/pallets/multi-asset-delegation/src/functions/delegate.rs +++ b/pallets/multi-asset-delegation/src/functions/delegate.rs @@ -26,7 +26,11 @@ use sp_runti...
4
2
1
[{"id": "G0", "claim": "The mock accessor asserted in the delegate test (record_deposit_calls) should be renamed to record_delegate_calls, since credits are now recorded on delegation rather than deposit.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "cl...
null
tangle-network__tangle__720
tangle-network/tangle
720
defect
f363748b3041648e5fd48cc768e5c025de397b3c
2e18ebd34b28ccf9cf6be781ea5f0fb0be9a7504
fix: check for already existing delegation
**Summary of changes** Changes introduced in this pull request: - When cancelling an unstake request, if a delegation already exists, update instead of creating new delegation - Deduct the delegation amount from metadata when unstake is called
diff --git a/pallets/multi-asset-delegation/src/functions/delegate.rs b/pallets/multi-asset-delegation/src/functions/delegate.rs index 841eb88aa..bb3a1e42d 100644 --- a/pallets/multi-asset-delegation/src/functions/delegate.rs +++ b/pallets/multi-asset-delegation/src/functions/delegate.rs @@ -127,19 +127,27 @@ impl<T: C...
2
1
0
[{"id": "G0", "claim": "cancel_delegator_unstake should include the operator argument: it matches unstake requests only by asset_id and amount and cancels the first match, so with two scheduled requests that differ only by operator the system cancels the first request it finds rather than the intended one.", "category"...
null
tangle-network__tangle__793
tangle-network/tangle
793
defect
bee0039704c95c5a3d71d3f3707f4c41bc2aea1e
1b2c5f983b03051fbabe20f3e9a13ccb8813a0be
feat: Slashing Queue
**Summary of changes** Changes introduced in this pull request: This pull request includes several significant changes to the `pallets/multi-asset-delegation` and `pallets/services` modules, focusing on adding new functionalities, refining existing ones, and removing deprecated features. ### New Functionalities:...
diff --git a/flake.lock b/flake.lock index ef8a8ca3a..2850ce6d4 100644 --- a/flake.lock +++ b/flake.lock @@ -5,11 +5,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1710146030, - "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "lastModified": 1...
5
4
0
[{"id": "G0", "claim": "The new `slash` function needs documentation, and ideally the pallet's logic should be split into separate files as done in `multi-asset-delegation`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The redundant sanity check...
null
tangle-network__tangle__856
tangle-network/tangle
856
defect
30acfac8fbe6b75292b3a9b8158191dce92b4241
8fdcd5dd6685ebfaa0d7fff6db7ac0269e0a5d25
feat: Multi Asset Delegation pallet fuzzing
**Summary of changes** Changes introduced in this pull request: This pull request includes the addition of a new fuzzer module for the `pallet-multi-asset-delegation`. The most important changes include adding new dependencies, updating existing dependencies, and introducing a fuzzer for the `pallet-multi-asset-del...
diff --git a/.gitignore b/.gitignore index 0dec3b68d..5906e26cf 100644 --- a/.gitignore +++ b/.gitignore @@ -41,4 +41,6 @@ resources/para-2076-wasm scripts/edg-balances-new.json *.venv -._* \ No newline at end of file +._* +hfuzz_*/ + diff --git a/Cargo.lock b/Cargo.lock index aa3e7b928..23804348a 100644 --- a/Carg...
1
1
0
[{"id": "G0", "claim": "The fuzzer needs more checks so that the fuzzed operations never leave the pallet in a wrong state and the math is always correct.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tangrams__tangram-es__1067
tangrams/tangram-es
1,067
defect
48b2e4bd6461771e0d22693053918054f214e10c
65eef1fe1c6d70e6b21f0e0b1a4bd775462a4529
Add robust URL handling and use it for scene imports
- Adds the `Tangram::Url` class, which represents URLs and data URIs, compliant with IETF RFCs 1808 and 3986. (I'm pretty happy with how this turned out, parsing and resolving URLs gets complicated but it's all done without allocating additional memory). - Adds a ton of tests for `Tangram::Url`, using examples from ...
diff --git a/core/src/scene/importer.cpp b/core/src/scene/importer.cpp index 6620a24f70..0e08b20334 100644 --- a/core/src/scene/importer.cpp +++ b/core/src/scene/importer.cpp @@ -13,22 +13,12 @@ namespace Tangram { std::atomic_uint Importer::progressCounter(0); -bool isUrl(const std::string &path) { - static co...
10
4
3
[{"id": "G0", "claim": "A URL should not be able to have a net location without having a scheme, so in a scheme-relative reference like `//a/b/c` the `a` should not be treated as the net location.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The htt...
null
tangrams__tangram-es__1130
tangrams/tangram-es
1,130
defect
d53e94a7c17e6d5151cdd09b419c1cab921cf6da
0dc72757dee05623850adbf650d6f200831f586c
optimize applyGlobals
- YamlPath strings were allocated for each sequence and map node. This only allocates strings for the global-reference nodes. - YamlPath::get should not create nodes along the way
diff --git a/core/src/scene/sceneLoader.cpp b/core/src/scene/sceneLoader.cpp index f5874c7b6e..5da919328b 100644 --- a/core/src/scene/sceneLoader.cpp +++ b/core/src/scene/sceneLoader.cpp @@ -48,6 +48,8 @@ const std::string DELIMITER = ":"; // TODO: make this configurable: 16MB default in-memory DataSource cache: cons...
3
1
1
[{"id": "G0", "claim": "applyUpdates should check that update.path exists in the current scene.config before trying the update, instead of blindly creating the target node; that may also fix the failing tests.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c...
null
tangrams__tangram-es__1134
tangrams/tangram-es
1,134
defect
377e600424ef3400abd847b8c74745cd045e5e9b
b91cf3e9fd01d705f95b62bed97a840ac432e4b7
Fix stops for size style param
Size parameter is special and can be a 1d or a 2d. Unlike width or offsets. This creates a different handling for size style param for stops. Note: `stops` definitely need some refactoring love. Can definitely be made much concise. FUTURE PR!
diff --git a/core/src/scene/sceneLoader.cpp b/core/src/scene/sceneLoader.cpp index f5874c7b6e..6afb35ce96 100644 --- a/core/src/scene/sceneLoader.cpp +++ b/core/src/scene/sceneLoader.cpp @@ -1415,6 +1415,10 @@ void SceneLoader::parseStyleParams(Node params, const std::shared_ptr<Scene>& sc scen...
2
2
1
[{"id": "G0", "claim": "The eval functions should be given names that say what they do (evalWidth/evalFloat/evalVec2 renamed aptly, distinguishing exponential-from-zoom evaluation).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The user-parse...
null
tangrams__tangram-es__133
tangrams/tangram-es
133
defect
e6e56a0dfe7fff0e517a1c42a35e2e63cd4761ad
1bb4ee79b1e9181dae5a15b2c11b81d4c7e4201a
Filters
- Yaml Filter Parsing - Filter evaluation - Unit tests - Not integrated with config file parsing at present (soon.. (read next))
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 5ce1f88227..42619add82 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -35,6 +35,7 @@ include_directories(${INCLUDE_DIR} ${INCLUDE_DIRS}) set(CORE_LIBRARIES_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/${DEPENDENCIES_DIR}/tess2/libtess2/Include/ +...
4
4
2
[{"id": "G0", "claim": "Returning nullptr for a malformed filter will make the whole app segfault when it tries to filter incoming data; instead the loader should keep the error message but return a filter that always fails (for example range(-inf, -inf), a distinct NullFilter, or a concrete Filter that always returns ...
null
tangrams__tangram-es__1349
tangrams/tangram-es
1,349
defect
3ccd66f5866c0e3e67bcc080a3660c8d555d036c
110e1d9264bea34e2e73cae59bd3b7d5d62c45e7
[wip] Boundary Labels - text_source:left/right
Implement https://github.com/tangrams/tangram-es/issues/1339
diff --git a/core/src/labels/curvedLabel.cpp b/core/src/labels/curvedLabel.cpp index ea6f49fc04..1c0070447d 100644 --- a/core/src/labels/curvedLabel.cpp +++ b/core/src/labels/curvedLabel.cpp @@ -31,7 +31,7 @@ void CurvedLabel::applyAnchor(LabelProperty::Anchor _anchor) { } glm::vec2 offset = m_dim; - if ...
6
3
1
[{"id": "G0", "claim": "A FIXME comment ('remove white space') is left over in the added text_source parsing code and should be resolved or removed.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The TextSource operator== should be written more ...
null
tangrams__tangram-es__138
tangrams/tangram-es
138
defect
492ec24344463417d784b913759d7d687e196b02
7f5685c462ac8255889c72eaea628b3d8f04f858
Style configuration from YAML
Configuring styles, materials, and textures in the yaml file is now mostly implemented except for things explicitly noted in the code as "TODO". The biggest TODO is that mixing of styles still needs to be implemented, but that's a relatively separable task. PS Sorry for all the whitespace removal! My editors are all ...
diff --git a/core/resources/config.yaml b/core/resources/config.yaml index f10de40d16..42724f0628 100644 --- a/core/resources/config.yaml +++ b/core/resources/config.yaml @@ -1,8 +1,8 @@ cameras: camera1: - type: perspective - focal_length: [[16, 2], [20, 6]] # pairs of [zoom, focal len] - va...
3
3
3
[{"id": "G0", "claim": "Before adding a user-defined style, the loader should make sure a style with the same name does not already exist (e.g. a stylesheet defining a style named \"lines\" would clash with the built-in \"lines\" style).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "i...
null
tangrams__tangram-es__1417
tangrams/tangram-es
1,417
defect
3920282454c89c49de71484e1ec42ee7e69ed6b6
69c4efe8f562c1c0f1f6aa468bb78be3bfd29c62
Refactor tile source subclasses into function namespaces
No change in functionality, just simplifying and cleaning some code. Instead of creating a different subclass of `TileSource` for each data format, a `TileSource` will now just store its data format and call the appropriate function(s) when it needs to parse tile data.
diff --git a/core/include/tangram/data/clientGeoJsonSource.h b/core/include/tangram/data/clientGeoJsonSource.h index a3a028bf9b..b39ccd70be 100644 --- a/core/include/tangram/data/clientGeoJsonSource.h +++ b/core/include/tangram/data/clientGeoJsonSource.h @@ -23,7 +23,7 @@ class ClientGeoJsonSource : public TileSource {...
1
1
1
[{"id": "G0", "claim": "loadSource should log a warning and return without adding the data source to the scene when `type` is not one of the supported tile sources, rather than silently defaulting it to GeoJSON.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tangrams__tangram-es__142
tangrams/tangram-es
142
defect
695d92585810c603a0771dc7995fbd127db40468
5ed5887f71a96dd5bf4918b7d7d50556c688a9a6
Text api
Update the data layout for text-rendering, now using more attributes, all packed in vbo. Possible use of DYNAMIC_DRAW/STREAM hint for vertex buffer objects.The code base gets simpler and some known issues are automatically fixed (out of screen translations not anymore packed to a byte so the text origin/anchor point ca...
diff --git a/core/include/fontstash-es b/core/include/fontstash-es index de034e4f4b..90786db9aa 160000 --- a/core/include/fontstash-es +++ b/core/include/fontstash-es @@ -1 +1 @@ -Subproject commit de034e4f4b5328f03b002ca4365353f6d08a83fe +Subproject commit 90786db9aa52b5072fc0df2f0ae317a354166948 diff --git a/core/res...
3
2
1
[{"id": "G0", "claim": "Zooming out to roughly zoom 1 or 0 causes segfaults, apparently because the vertex buffer is being modified after it is freed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Since transparent quads are collapsed to a degenera...
null
tangrams__tangram-es__1498
tangrams/tangram-es
1,498
defect
10b05c8b9736f7ce9d541556d358cc86039690fa
48f5d571de398272441d2a85847a704db2a5fa0c
Scaled tiles
Ok this is much better now. - visible tile ids (scale and max zoom adjusted) are stored per datasource - Does not unnecessarily bloat TileID struct - getParent and getChild TileID takes into account a datasource' tileScale and maxZoom respectively. Addressed #1435 - label pipeline modified a bit to include t...
diff --git a/core/include/tangram/data/clientGeoJsonSource.h b/core/include/tangram/data/clientGeoJsonSource.h index b39ccd70be..5b96ec3f12 100644 --- a/core/include/tangram/data/clientGeoJsonSource.h +++ b/core/include/tangram/data/clientGeoJsonSource.h @@ -19,7 +19,8 @@ class ClientGeoJsonSource : public TileSource {...
16
13
2
[{"id": "G1", "claim": "m_tileScale should get a clearer name (such as logTileScale or zoomBias) or at least a clearer description, because 'scale' is misleading since the value is an exponent, not a scalar multiplier.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"...
null
tangrams__tangram-es__1526
tangrams/tangram-es
1,526
defect
a06e105d13d604eb7a74bf1ac25a152af89f6375
372eb5972e91044667c2ab6649c8bad6c91816d9
Scene complete callback
https://github.com/tangrams/tangram-es/issues/1525 - this PR enables to recreate markers reliably in SceneLoaderLister.onReady() (after applySceneUpdates) - fix unreleased GlobalRef in case SceneUpdate succeeded, otherwise MapController probably never got garbage collected - update IOS/OSX
diff --git a/core/include/tangram/map.h b/core/include/tangram/map.h index 4230770c4f..7a88fd5e32 100644 --- a/core/include/tangram/map.h +++ b/core/include/tangram/map.h @@ -65,20 +65,19 @@ struct SceneUpdate { }; enum Error { + none, scene_update_path_not_found, scene_update_path_yaml_syntax_error, ...
17
12
2
[{"id": "G0", "claim": "When these changes are merged and released, the tizen plugin has to be updated with these API changes.", "category": "compatibility", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Keep the user-data parameter so that users like the tizen plugin can pass...
null
tangrams__tangram-es__1665
tangrams/tangram-es
1,665
defect
f2cb7eb53dd92463c0aaa868a6b06f83c5e7ff2f
37474c6c98f2317ce2a227f70d75ed78b4177516
Dynamic PointStyle textures
https://github.com/tangrams/tangram-es/issues/1645
diff --git a/core/src/gl/texture.h b/core/src/gl/texture.h index 16e10446e4..108e5dbb64 100644 --- a/core/src/gl/texture.h +++ b/core/src/gl/texture.h @@ -2,6 +2,7 @@ #include "gl.h" #include "gl/disposer.h" +#include "scene/spriteAtlas.h" #include <vector> #include <memory> @@ -95,6 +96,8 @@ class Texture { ...
7
4
3
[{"id": "G0", "claim": "PointStyleBuilder::checkRule should not make every point style rule pass irrespective of any color or texture parameter being set (the color/texture validity check the pull request removed should be restored).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intro...
null
tangrams__tangram-es__1689
tangrams/tangram-es
1,689
defect
59cb15778aa386908d61feae35b3a10c0a588879
7b1dc9ac5211bd3404bf9fa3f719cba9dc1c0156
Fix ordering of color components returned from JS function as array
The current code puts color components into the wrong parts of the resulting integer - making the final colors wrong. For example, if you set the `water` layer color to `function() { return [ 0.0, 0.25, 0.5, 1.0 ]; }` in the demo scene, you currently get: ![screen shot 2017-10-11 at 4 11 39 pm](https://user-images.g...
diff --git a/core/src/scene/styleContext.cpp b/core/src/scene/styleContext.cpp index 268c8579be..0395805de8 100644 --- a/core/src/scene/styleContext.cpp +++ b/core/src/scene/styleContext.cpp @@ -432,10 +432,7 @@ void StyleContext::parseStyleResult(StyleParamKey _key, StyleParam::Value& _val) duk_po...
2
1
0
[{"id": "G0", "claim": "Initializing a Color via its r,g,b,a constructor and then reading the anonymous union's `abgr` member is union type-punning whose behaviour is undefined by the C++ standard, so the PR should refrain from such memory trickery and provide a method that does the apt conversion instead.", "category"...
null
tangrams__tangram-es__172
tangrams/tangram-es
172
defect
64a19f0662ece0974aa7b056dd3e52fe72523612
29c3eca21cbaba0f81f679068c22299559d6209e
Text buffer as mesh
Make the text buffer inherits from the mesh. This makes the data ownership easier, also reduces the thread lock of the font context from building tile time lapse to a label rasterization time, which makes tile building faster when text rendering is needed, or text buffer binding. This will also helps updating the vert...
diff --git a/core/include/fontstash-es b/core/include/fontstash-es index 056f17c8d9..94ee86a9bb 160000 --- a/core/include/fontstash-es +++ b/core/include/fontstash-es @@ -1 +1 @@ -Subproject commit 056f17c8d9e6d2952a26210d2d0935f7f24ef593 +Subproject commit 94ee86a9bbbd104cf09d60ee9f49ecc124543bbb diff --git a/core/src...
1
1
1
[{"id": "G0", "claim": "The TextBuffer destructor should lock the font context around glfonsBufferDelete, as is done in init().", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tangrams__tangram-es__1788
tangrams/tangram-es
1,788
defect
e0b1a0bcb0becfd569f85bf9539a61574a4b02f7
43efd63c69d1c018c80ee00bb8eab33f7788168b
Implement % and auto sizing for point style
Refer the [docs](https://github.com/tangrams/tangram-docs/blob/2de1ea6941d492a6008f52ebbfda7635ecac8379/pages/draw.md#size-) for details. - Introduced `SizeValue` as a `StyleParam::Value` - Explicit handling of size stop evaluation - Fix to take care of mixed dimension size stops Explanation: Since we no longe...
diff --git a/core/src/gl/texture.h b/core/src/gl/texture.h index b24604eb1f..1c74b0365b 100644 --- a/core/src/gl/texture.h +++ b/core/src/gl/texture.h @@ -95,6 +95,7 @@ class Texture { size_t bufferSize(); auto& spriteAtlas() { return m_spriteAtlas; } + const auto& spriteAtlas() const { return m_spriteAt...
12
12
2
[{"id": "G0", "claim": "Tangram JS does not support returning size strings from parameter functions, so the string-parsing case for `size` added to StyleContext::parseStyleResult should be removed to keep behaviour consistent with JS.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduce...
null
tangrams__tangram-es__1894
tangrams/tangram-es
1,894
defect
539e582c027bf159b69dec52150f1f4f82336915
52a3702d32b63fa7270448571bd27d6bb6b252b9
Parse StyleParam values directly from YAML nodes
Previously, style parameters were parsed from the scene file by first serializing the YAML node of the parameter into a string, then passing that string to StyleParam to parse it. This resulted in a lot of cumbersome and fragile string parsing. This change enables StyleParam to parse values directly from YAML nodes,...
diff --git a/core/src/scene/sceneLoader.cpp b/core/src/scene/sceneLoader.cpp index fbb0b87330..105807a225 100644 --- a/core/src/scene/sceneLoader.cpp +++ b/core/src/scene/sceneLoader.cpp @@ -1108,22 +1108,17 @@ void SceneLoader::loadSourceRasters(const std::shared_ptr<Platform>& platform, s } } -void SceneLoade...
14
8
3
[{"id": "G0", "claim": "parseSize only parses the first two values when size is a sequence; it should warn when the sequence has more than 2 elements while still parsing the first two.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In parseVec, a failing p...
null
tangrams__tangram-es__1930
tangrams/tangram-es
1,930
defect
a9797b6f1653a4adbeae381b371929ce28ee2d04
3b5b86ae4b4168d42e781ed711011f28991c98df
Texture cleanup
- TextureOptions now includes `generateMipmaps` and `density` parameters. - TextureOptions has default values. - Texture constructor doesn't require width and height. - Filtering, Wrapping, and PixelFormat are now typed enums (I often forget which options belong to which parameter). - Texture loads image data from ...
diff --git a/core/src/data/rasterSource.cpp b/core/src/data/rasterSource.cpp index 4f985625e8..78c469c0ce 100644 --- a/core/src/data/rasterSource.cpp +++ b/core/src/data/rasterSource.cpp @@ -68,22 +68,21 @@ class RasterTileTask : public BinaryTileTask { RasterSource::RasterSource(const std::string& _name, std::uni...
3
2
0
[{"id": "G0", "claim": "evalSizeParam is called often enough that the sprite-size division by density should be avoided there to save cycles.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "loadImageFromMemory could skip the stbi_load_from_memory cal...
null
tangrams__tangram-es__1998
tangrams/tangram-es
1,998
defect
6a8333b859f68ebb6e2286132d4436cbf157265c
63be7f64a0ec4de3ac545ef829171b546496acf7
Apply view constraint immediately when setting position or zoom
See also https://github.com/tangrams/tangram-es/pull/1996 Previously a View could have a position/zoom assigned that violated the world bounds constraint until the subsequent `update()` call. This change ensures that the position and zoom of the view always satisfy the constraint preference.
diff --git a/core/src/view/view.cpp b/core/src/view/view.cpp index ba287cfd6d..014d8af31d 100644 --- a/core/src/view/view.cpp +++ b/core/src/view/view.cpp @@ -163,12 +163,24 @@ float View::getMaxPitch() const { } +void View::setConstrainToWorldBounds(bool constrainToWorldBounds) { + + m_constrainToWorldBounds =...
1
1
1
[{"id": "G0", "claim": "The view-constraint math (the min-zoom log and divisions) is redone on every setPosition/setZoom call even though it only changes when the viewport size or pixel scale changes, and should only be recomputed then.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "in...
null
tangrams__tangram-es__2016
tangrams/tangram-es
2,016
defect
e4ebb424ecdeb7c789710d10a3c22319c0a73b31
e1a142408695f51e937b51c9e9288573aa00a730
Fix duplicate, non-cyclic scene imports
The current scene import process can behave incorrectly when a scene file is imported more than once in the recursive import graph. TODO: - [x] Add a test to demonstrate the existing problem with imports - test should fail currently - [x] Apply a fix to the scene merge process and check that test passes
diff --git a/core/src/scene/importer.cpp b/core/src/scene/importer.cpp index f71e67f1a6..a694e3fa18 100644 --- a/core/src/scene/importer.cpp +++ b/core/src/scene/importer.cpp @@ -75,6 +75,9 @@ Node Importer::applySceneImports(Platform& platform) { }); } + if (m_importedScenes.size() == 1) { + ...
1
1
1
[{"id": "G0", "claim": "The S1 quick fix of cloning merged nodes is still applied even though hjanetzek's new change is meant to make cloning unnecessary, and removing the clone makes the behaviour broken again.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tangrams__tangram-es__237
tangrams/tangram-es
237
defect
4706f2e385c792b8cb09a2b73eef0c958147c82e
873cdc68644126a08dff3dabe8381d5c1aaec004
Layer refactor
This reorganizes the process of building features in a tile: filtering them by data source, then filtering by layer filters, then finding and combining matching rules for drawing. Some new terminology and classes: - A data source can contain several "collections" of data (we used to call these "layers" but that term is...
diff --git a/core/src/data/dataSource.h b/core/src/data/dataSource.h index 795e81f0a5..4ea7e60965 100644 --- a/core/src/data/dataSource.h +++ b/core/src/data/dataSource.h @@ -55,6 +55,8 @@ class DataSource { /* Clears all data associated with this DataSource */ void clearData(); + const std::string& name...
9
5
0
[{"id": "G0", "claim": "findParameter's lower_bound comparator is missing ampersands (copying a StyleParam and a string per comparison), and findParameter should return a StyleParam by const& (e.g. a NOT_A_STYLE-style constant with a bool conversion) instead of copying into an out-parameter.", "category": "design", "ve...
null
tangrams__tangram-es__267
tangrams/tangram-es
267
defect
43af16cc048cab9b444a4ccdb5ff353020f3df3e
99123a965a369ef6197fb1ce802a83671861a36f
Dynamic non-tiled map data
_Dots on maps! Lines on maps! Wonders abundant!_ These changes incorporate the very handy [geojson-vt-cpp](https://github.com/mapbox/geojson-vt-cpp) library from the good folks at Mapbox to enable two new ways of putting data on tangram maps: **1. Add geometry from a file of GeoJSON:** In the scene file, you can dec...
diff --git a/.gitmodules b/.gitmodules index 8d018307a8..7153cbe86d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -26,4 +26,7 @@ url = https://github.com/google/benchmark [submodule "core/include/variant"] path = core/include/variant - url = https://github.com/mapbox/variant + url = https://github.com/mapbox/varia...
11
4
0
[{"id": "G0", "claim": "The addPoint/addLine/addPolygon APIs should use a friendlier LngLat abstraction (e.g. List<LngLat>) instead of 2D arrays, to make it less likely developers get array dimensions flipped or coordinate order reversed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "intro...
null
tangrams__tangram-es__27
tangrams/tangram-es
27
defect
4f0d62b6832a6b3ad86486d8f372ea2d92bc74dc
0d085b177c23a38a996b88dd17d4ef892eae7b1d
Load resources as array of bytes
This would be particularly useful when loading fonts, added the three specific platform implementation and wrote a simple unit test for it.
diff --git a/android/jni/platform_android.cpp b/android/jni/platform_android.cpp index 9673774d2e..479b792d88 100644 --- a/android/jni/platform_android.cpp +++ b/android/jni/platform_android.cpp @@ -58,4 +58,30 @@ std::string stringFromResource(const char* _path) { } +unsigned char* bytesFromResource(const char* _...
2
1
1
[{"id": "G0", "claim": "bytesFromResource needlessly copies the whole file with memcpy and leaves the wrapper NSData object never released (a leak when it is only retained), so it should instead load the file and handle allocation itself, e.g. via an ifstream on the resolved path.", "category": "performance", "verdict"...
null
tangrams__tangram-es__283
tangrams/tangram-es
283
defect
018399a74ef3f053e9f0d99aed1786de9f77ada7
2e0eb2eed66c56cdb4ddb1f69f21eed490ce0cd9
Style mixing
- [x] ORing of properties like `animated` or `texcoords`. - [x] overWriting of properties like `base`, `lighting`, `texture`, `blend`. - [x] overWriting of `material` subProperties: `diffuse`, `ambient`, `specular`, `shininess`, `normal`. - [x] merging of shader node `uniforms` and `defines` - [x] deep merging of `shad...
diff --git a/core/resources/scene/scene.yaml b/core/resources/scene/scene.yaml index 61e3095bed..710beea046 100644 --- a/core/resources/scene/scene.yaml +++ b/core/resources/scene/scene.yaml @@ -44,8 +44,14 @@ styles: mapping: uv diffuse: 0.75 + testStyle: + shaders: + ...
12
12
5
[{"id": "G0", "claim": "The helper name propORing reads badly (like O-ring) and should be renamed to something clearer such as propFlag.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment 'Overwriten style properties' misspells 'overwrit...
null
tangrams__tangram-es__294
tangrams/tangram-es
294
defect
541b331820e8a06beca4c5039e86f7f00908128d
c24cc27843b68fbd5084faa2c955f27fee239458
Uniform injection
Handles the injection of style uniforms and setting the uniform value on a draw call. - Style Injection: -- Handles float, boolean (0: false, 1: true), vec2, vec3, vec4, texture samplers. -- `Style::setupShaderUniforms` sets the uniform value on draw frame call. TODO Before this goes for final review: - [x] Tests ...
diff --git a/core/src/scene/sceneLoader.cpp b/core/src/scene/sceneLoader.cpp index 3a7f527713..115c17cc94 100644 --- a/core/src/scene/sceneLoader.cpp +++ b/core/src/scene/sceneLoader.cpp @@ -19,6 +19,7 @@ #include "sceneLayer.h" #include "scene/dataLayer.h" #include "text/fontContext.h" +#include "util/yamlHelper.h"...
8
5
1
[{"id": "G0", "claim": "Style should not keep its own extra texture mapping for uniforms — textures should live in the Scene (e.g. shared_ptr<Texture> in the UniformValue, or a Scene textures container that uniforms refer to) instead of a per-style m_uniformTextures map.", "category": "design", "verdict": "supported", ...
null
tangrams__tangram-es__297
tangrams/tangram-es
297
defect
6d00104164aadb28cf44c19a2cb5b4d72ba0fd5f
8090a3676852ef554dd878824fb2c73780f10915
Resource paths are resolved relative to scene file
- The "core/resources" directory structure is preserved when the application is built. - At launch, tangram stores the directory that contains the scene file being loaded. All future resource paths are resolved relative to this directory. - If the scene file is provided using a relative path, it is interpreted to be ...
diff --git a/android/tangram/build.gradle b/android/tangram/build.gradle index d04f65696f..38959efead 100644 --- a/android/tangram/build.gradle +++ b/android/tangram/build.gradle @@ -25,10 +25,7 @@ android { java.srcDirs = ['src'] jni.srcDirs = [] jniLibs.srcDirs = ['libs'] - assets.srcDirs = ['../../...
4
2
1
[{"id": "G0", "claim": "Rework setResourceRoot in ios/src/platform_ios.mm to be more direct: set s_resourceRoot from the bundle resource path and append the relative path only when _path does not begin with '/'.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
tangrams__tangram-es__299
tangrams/tangram-es
299
defect
5aa31503e5eed4ae6cf65aac48b5902aa5c842e4
c497409ac645328218b01b57a8110615be61f57b
Scene reloading
First in the series of Scene loading related branches, splitting up #291 This branch add support for reloading scenes at runtime. Edit your style, press 'R' for reload in the app and see your changes immediately! :)
diff --git a/core/src/data/dataSource.cpp b/core/src/data/dataSource.cpp index 5214bd40d8..06c4e7d3d2 100644 --- a/core/src/data/dataSource.cpp +++ b/core/src/data/dataSource.cpp @@ -6,12 +6,18 @@ #include "tile/tile.h" #include "tile/tileManager.h" +#include <atomic> + namespace Tangram { +static std::atomic<in...
3
2
1
[{"id": "G0", "claim": "The resource root location needs to be set before loading resources for a new scene, as in core/src/tangram.cpp:40 on master.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "State and contexts (gl, textures, fonts) loaded from...
null
tangrams__tangram-es__302
tangrams/tangram-es
302
defect
39ef5925e6fd94211dabe1bed95c638f026b8e91
fe9e360a81295d42a08aed4c38cadb572ee1c632
Nested mixins
- [x] fix for unique style mixes (test commented right now)
diff --git a/core/src/scene/sceneLoader.cpp b/core/src/scene/sceneLoader.cpp index 8df224674c..e5ac7c1b02 100644 --- a/core/src/scene/sceneLoader.cpp +++ b/core/src/scene/sceneLoader.cpp @@ -73,21 +73,15 @@ void SceneLoader::loadShaderConfig(Node shaders, Style& style, Scene& scene) { if (!shaders) { return; } ...
7
5
2
[{"id": "G0", "claim": "The new extension code uses sprintf into a fixed 1000-byte stack buffer commented 'sufficient space', which is unsafe; snprintf is available and should be used instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Asks to c...
null
tangrams__tangram-es__305
tangrams/tangram-es
305
defect
5aa31503e5eed4ae6cf65aac48b5902aa5c842e4
c917f998d12a580d9c554aa6ab11df3b6091d8e5
Fix lighting mix
This PR fixes a couple of things: - Lighting property is special in the case that it can be boolean or scalar/string value. [`true`, `false`, `vertex`, `fragment`]. In which case it should be overwritten when mixing styles properties. This PR, explicitly calls either OR, or Merge methods to appropriate properties expli...
diff --git a/core/src/scene/sceneLoader.cpp b/core/src/scene/sceneLoader.cpp index d4fcff9ad0..d3a98e0683 100644 --- a/core/src/scene/sceneLoader.cpp +++ b/core/src/scene/sceneLoader.cpp @@ -408,6 +408,23 @@ void SceneLoader::loadStyleProps(Style* style, YAML::Node styleNode, Scene& scen } +Node SceneLoader::propO...
1
1
1
[{"id": "G0", "claim": "propOr compares the scalar to the string \"true\" only, so YAML's other boolean spellings (\"True\", \"TRUE\") are missed; the reviewer suggests using as<bool> for consistency.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tangrams__tangram-es__322
tangrams/tangram-es
322
defect
ab33f803f13b51ae4722df75f2ef85e35ba30d89
6ded26744d2aa3ad2e231bb0a417e5cbb01bcfb5
Allow persistent icons
I am not so happy with this solution since it adds a `persistent` keyword in the stylesheet not existing in JS, but that's the easiest workaround now to enable persistent icons. We could detect if the icon comes from a client data source but this would get pretty messy since it introduces a lot of assumptions.
diff --git a/core/resources/scene.yaml b/core/resources/scene.yaml index 8238fa1e59..15d431eb9b 100644 --- a/core/resources/scene.yaml +++ b/core/resources/scene.yaml @@ -64,8 +64,12 @@ layers: color: 'purple' order: 50 width: .03 - # sprites: - #...
6
5
3
[{"id": "G0", "claim": "The `persistent` keyword is vague, so before merging the syntax should be reconsidered for future uses, e.g. a `transition` keyword (default fade, `transition: false` here) or `fade: false`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c...
null
tangrams__tangram-es__333
tangrams/tangram-es
333
defect
8c26e9fc1bdb164aee86dddab58649413026c27e
f9722fa8228880f34f89b118fe9b94c71de97e99
Vertex pipeline is compatible with web renderer
Supersedes #330 - Normalizes positions within tiles to the range [0, 1] - Provides modelPosition() and worldPosition() functions in vertex shaders - Sets u_model, u_view, and u_proj instead of combined matrices (turns out we actually need all of the intermediate values, so pre-multiplying won't save any work) - Rename...
diff --git a/core/resources/scene.yaml b/core/resources/scene.yaml index 8238fa1e59..7550ed062b 100644 --- a/core/resources/scene.yaml +++ b/core/resources/scene.yaml @@ -43,7 +43,7 @@ styles: lighting: vertex shaders: blocks: - color: "color.rgb += vec3(0.3 * position.z * ...
4
3
2
[{"id": "G0", "claim": "Since polyline vertices sit at the zero-width position, worldPosition() should return the world position after the vertex is extruded by its rendered width, not the unextruded position (which smeared all lines using world position in the JS renderer).", "category": "correctness", "verdict": "sup...
null
tangrams__tangram-es__367
tangrams/tangram-es
367
defect
64ac4fdefcd63e3651e2b722ab2a1fb4b87d9dbd
f77d0de69c182fa84d2ab09504f6a0b1bffa15e5
Word wrapping
as in [tangram-js](https://github.com/tangrams/tangram/pull/205) - [x] alignments (center/left/right) - [x] add stylesheet support <img width="582" alt="screen shot 2015-10-27 at 10 23 17 am" src="https://cloud.githubusercontent.com/assets/7061573/10760802/c6e56596-7c94-11e5-88bf-682c64043cd0.png">
diff --git a/core/src/style/textStyle.h b/core/src/style/textStyle.h index 704d8ed9b3..e133c66f0e 100644 --- a/core/src/style/textStyle.h +++ b/core/src/style/textStyle.h @@ -36,6 +36,8 @@ class TextStyle : public Style { TextTransform transform = TextTransform::none; bool visible = true; Lab...
4
4
2
[{"id": "G0", "claim": "The variable `lookAHead` in findWordBreaks should not have a capitalized H (rename it to `lookAhead`).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The word wrapping needs to handle explicit line breaks (`\\n` chars) in...
null
tangrams__tangram-es__396
tangrams/tangram-es
396
defect
bc1ad644832e9a4e350e2018b01979caab063ebb
166c20fdaad688114eba5989f60efdd0b1dbe411
Reduce flickering
Reduce flickering of labels already visible on the screen. This smoothen transition between zoom levels and gives better visual experience while zooming in or out. This relies on the labels of the tile cache (the _parent_ cached tile for a _zoom in_, 4 _children_ cached tiles for a _zoom out_) to determine whether a l...
diff --git a/core/resources/scene.yaml b/core/resources/scene.yaml index c5847e4df1..e7dbd4a184 100644 --- a/core/resources/scene.yaml +++ b/core/resources/scene.yaml @@ -252,7 +252,7 @@ layers: collide: true transition: [show, hide]: - time:...
2
1
1
[{"id": "G0", "claim": "The transition-skip loop in Labels::update should only be triggered when the zoom level changes (when a tile transition happens), not run on every frame.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The skip-transition mech...
null
tangrams__tangram-es__429
tangrams/tangram-es
429
defect
7fea8f2059f149dcdb93d3bd6fbf135793ee7447
7cc937e7cac2855e8e9ea8242553ad99bf90f69f
Interpolate offsets
- Interpolation for offset - Add unit (meters/pixel/...) validity check for widths
diff --git a/core/resources/scene.yaml b/core/resources/scene.yaml index 5dd3b8f212..f60c3e0eb5 100644 --- a/core/resources/scene.yaml +++ b/core/resources/scene.yaml @@ -100,14 +100,6 @@ layers: landuse: data: { source: osm } - filter: - name: true - any: - -...
2
1
0
[{"id": "G0", "claim": "The IsSequence check in Stops::Widths is not needed again, since sceneLoader.cpp already checks it.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The new names is2DWidth/Widths2D are confusing since these are not exact...
null
tangrams__tangram-es__438
tangrams/tangram-es
438
defect
abdb31027a849d3a04482acf6a45a5af51986919
9122e918270b2c5524879b7fb3945dc406419019
Blend order
Blend order to tie-break for different non-opaque tiles. Equivalent JS PR: https://github.com/tangrams/tangram/pull/223
diff --git a/core/resources/scene.yaml b/core/resources/scene.yaml index a73d0ca2d7..cf1f62e129 100644 --- a/core/resources/scene.yaml +++ b/core/resources/scene.yaml @@ -56,9 +56,25 @@ styles: heightglowline: base: lines mix: heightglow + text-overlay: + base: text + blend_order...
6
5
2
[{"id": "G0", "claim": "The new blend_order YAML parsing should wrap the as<int>() conversion in a try-catch so parsing is robust to unexpected content.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The style sorting should also compare style names...
null
tangrams__tangram-es__476
tangrams/tangram-es
476
defect
25bb368ff20cdfba805e28a8470822ffa6de2ef1
96a1558ae2098bfe87711e1742688c21ed6da751
Data sources can set maximum zoom for tile requests
Beyond `max_zoom`, data from the highest available zoom is scaled up and re-styled for the current zoom level. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/tangrams/tangram-es/476) <!-- Reviewable:end -->
diff --git a/core/resources/scene.yaml b/core/resources/scene.yaml index a73d0ca2d7..b17064ce91 100644 --- a/core/resources/scene.yaml +++ b/core/resources/scene.yaml @@ -64,6 +64,7 @@ sources: osm: type: MVT url: https://vector.mapzen.com/osm/all/{z}/{x}/{y}.mvt + max_zoom: 16 layers:...
3
1
1
[{"id": "G0", "claim": "The new method name `withMaxSourceZoom` may not be appropriate and should be renamed to something like `tileIDUnzoomed`.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "`View::s_maxZoom` in view.h should be reset back to 18....
null
tangrams__tangram-es__497
tangrams/tangram-es
497
defect
2eb4156ecae302323c7c68000bbf6c917c1b8432
b87dfc118c52edc2595d887308a4b11d72e62ca7
Refactor label state machine
https://github.com/tangrams/tangram-es/issues/478 - label occlusion _should_ have stopped running into loops - separate updateState() and evalState(). Before the state was applied for the previous frame (m_occludedLastFrame) - this also fixes first frame flickering (non-drawn labels) when switching zoom-level - ref...
diff --git a/core/src/labels/label.cpp b/core/src/labels/label.cpp index cc303604e9..34cb1a0c4d 100644 --- a/core/src/labels/label.cpp +++ b/core/src/labels/label.cpp @@ -17,17 +17,14 @@ Label::Label(Label::Transform _transform, glm::vec2 _size, Type _type, LabelMesh if (!m_options.collide || m_type == Type::debug...
10
6
2
[{"id": "G0", "claim": "The wait_occ test in the !ruleSatisfied branch would be easier to read written as a direct state comparison instead of a bitwise AND.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The !ruleSatisfied handling is missing a...
null
tangrams__tangram-es__512
tangrams/tangram-es
512
defect
8761a57e91239caf5918ffca277010d43d1da163
30cbb883913bffdb778260a687513255c2236901
Drawrule optimizations
- The most expensive part in merging was to zero out the params-,layer- and depth arrays on DrawRule initialization. Using a bitset reduces this to 4 bytes vs previously 480 or 960 bytes (on 64bit arch) - Instead of creating a set a all matched layer strings to calculate the label repeatGroup hash, drawRule got a new h...
diff --git a/core/src/scene/drawRule.cpp b/core/src/scene/drawRule.cpp index 5905f0e086..f5ac439adb 100644 --- a/core/src/scene/drawRule.cpp +++ b/core/src/scene/drawRule.cpp @@ -8,16 +8,17 @@ #include "style/style.h" #include "platform.h" #include "drawRuleWarnings.h" +#include "util/hash.h" #include <algorithm>...
3
3
1
[{"id": "G0", "claim": "The styleName/styleId member names conflate a draw rule's name with the name of the style it uses, and the variables should be named (and commented) so that the necessarily distinct rule-name and style-name concepts are clearly reflected.", "category": "maintainability", "verdict": "supported", ...
null
tangrams__tangram-es__523
tangrams/tangram-es
523
defect
33177786598d4bca0501dfc6d98ad471ec8b727e
d5b0a2f4f330b12d87bafcc080625faab6a9319a
merge TypedMesh into VboMesh
- change VboMesh to VboMeshBase to share commmon implementations - add interface for StyledMesh to make only the functions visible that should be used externally once a Mesh is built. This removes the requirement that tile meshes must extend VboMesh (which is not needed for alfons LabelContainer) - StyledMesh sho...
diff --git a/core/src/debug/textDisplay.h b/core/src/debug/textDisplay.h index b9f355ea4b..64fd437237 100644 --- a/core/src/debug/textDisplay.h +++ b/core/src/debug/textDisplay.h @@ -5,7 +5,7 @@ #include <mutex> #include <cstdio> #include "gl/texture.h" -#include "gl/typedMesh.h" +#include "gl/vboMesh.h" #include "...
5
4
1
[{"id": "G0", "claim": "Remove the empty `protected:` block at the end of the VboMesh class template in vboMesh.h.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Texture and Shaders should use the same RenderState generation process as the rest,...
null
tangrams__tangram-es__555
tangrams/tangram-es
555
defect
5d41266263a4507fcb2f3892ed019475e513e0a3
c8232bd5dd214361ce4a5771be92430e2ca07e38
Improved style mixing
This is a refactoring and optimization of the style mixing process that removes several hundred lines of code, clarifies mixing behavior, and **improves style loading speed by roughly 100X**. - Style mixing functions are now in a dedicated file with clearly separated and documented roles - Style mixing uses topologica...
diff --git a/core/src/gl/shaderProgram.cpp b/core/src/gl/shaderProgram.cpp index 1cafc15582..a6d7b08ee5 100644 --- a/core/src/gl/shaderProgram.cpp +++ b/core/src/gl/shaderProgram.cpp @@ -310,6 +310,15 @@ void ShaderProgram::checkValidity() { } } +std::string ShaderProgram::getExtensionDeclaration(const std::str...
6
4
0
[{"id": "G0", "claim": "When mixing with a base style, mixins is most of the time empty, so some allocations could be saved by only applying the shaders:blocks: mixing in that case.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The local vector in ge...
null
tangrams__tangram-es__572
tangrams/tangram-es
572
defect
c08148dbbd5ec4e6c509e41cef16a7629a53bc3a
b783cbc9dfad3951f2969cd554ab41bca03db55c
More generous view limits
This is a looser, more approximate, but more practical approach to limiting the map view to the bounds of the world. It constrains the view position and zoom according to a characteristic radius that approximates the extent of the view in world space on all sides; basically it's just colliding a circle against the spec...
diff --git a/core/src/view/view.cpp b/core/src/view/view.cpp index c9c397f97d..386a32e078 100644 --- a/core/src/view/view.cpp +++ b/core/src/view/view.cpp @@ -41,6 +41,9 @@ void View::setMapProjection(ProjectionType _projType) { break; } + auto bounds = m_projection->MapBounds(); + m_constrain...
1
1
0
[{"id": "G0", "claim": "The spaceAbove/spaceBelow variables in ViewConstraint::constrain should be renamed to something more generic, using STL-style 'upper'/'lower' terminology as the PR author proposed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tangrams__tangram-es__591
tangrams/tangram-es
591
defect
0b7ba9801a9b7ed529c6c167093022f985439d71
5789e8140d315bdc6599e8af08b67b5755dbf233
Fix recursive filters within a "not" filter
The previous code assumed that "not" could only contain a predicate.
diff --git a/core/src/scene/sceneLoader.cpp b/core/src/scene/sceneLoader.cpp index 6e89679f61..664841626e 100644 --- a/core/src/scene/sceneLoader.cpp +++ b/core/src/scene/sceneLoader.cpp @@ -876,10 +876,7 @@ Filter SceneLoader::generateNoneFilter(Node _filter, Scene& scene) { filters.emplace_back(generateF...
3
2
2
[{"id": "G0", "claim": "Add a test case covering recursive filters within a 'not' filter, since the pull request changes that behaviour.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The set of function strings could be made unique so that function fil...
null
tangrams__tangram-es__619
tangrams/tangram-es
619
defect
66ec6ad6f9182eeac9bd34ce43fbb0e66b360538
40a6f2898fba5390690c8eef6ae90dcaf1c9916b
Fix style mixing, for merging map properties on an empty target node
Fixes #618
diff --git a/core/src/scene/styleMixer.cpp b/core/src/scene/styleMixer.cpp index 097d4a3d21..640b91eca1 100644 --- a/core/src/scene/styleMixer.cpp +++ b/core/src/scene/styleMixer.cpp @@ -201,9 +201,6 @@ void StyleMixer::mergeFieldTakingLast(std::string key, Node target, const std::v void StyleMixer::mergeMapFieldTakin...
3
3
2
[{"id": "G0", "claim": "The pull request should include a test case covering the changed merging behaviour (merging map properties into an empty target node).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "mergeMapFieldTakingLast must not return early w...
null
tangrams__tangram-es__620
tangrams/tangram-es
620
defect
aedc2bd51c1a5c128f055f01f4f829d0ae786e35
3b22a9131abc6442970039c1a0dae4f7f5d417e5
Uniform arrays
Fixes https://github.com/tangrams/tangram-es/issues/548 Add possibility to use uniform arrays, this part is partially documented but will complete the docs more consistently. Comparing with the -js behavior, this adds the possibility to write the following: ``` yaml textures: texture0: url: img/poi_icon...
diff --git a/core/resources/scene.yaml b/core/resources/scene.yaml index fc7c938878..bd35c82aa9 100644 --- a/core/resources/scene.yaml +++ b/core/resources/scene.yaml @@ -42,20 +42,27 @@ textures: info: [0, 1110, 32, 32] hotel: [0, 259, 32, 32] bookstore: [0, 333, 32, 32] + tex...
6
3
1
[{"id": "G0", "claim": "Use the `Scalar()` call instead of `as` when reading the scalar string value in parseStyleUniforms.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "In the default branch for sequences with more than four elements, it may...
null
tangrams__tangram-es__648
tangrams/tangram-es
648
defect
70dccf8e00e43b5d838188b6d8694f206ea4fb23
210246262a0049406d045e80e0c2c34fd18f26c4
Global props
Fixes #549 - Scene global properties are parsed and applied after yaml parsing and before tangram parsing. - This PR does not handle any dynamic updates of these properties, example setting of language preferences. Todos: - [x] global application to JS functions - [x] Test/Implement Usage of global JS function inside...
diff --git a/core/resources/scene.yaml b/core/resources/scene.yaml index fe2e974211..e68660eed4 100644 --- a/core/resources/scene.yaml +++ b/core/resources/scene.yaml @@ -1,6 +1,13 @@ scene: background: color: '#8db7d5' + +global: + labels: false + color: + colorA: red + colorB: blue ...
11
10
3
[{"id": "G0", "claim": "The variant-based Value type is not sufficient to encode the possible values of a global property entry (elements of global can be arbitrary yaml, including sequences of strings and booleans), so the map should store the actual yaml nodes, and no more types called Value should be introduced.", "...
null
tangrams__tangram-es__955
tangrams/tangram-es
955
defect
a1e64d500db71b859cc9c1f0c95f2c7bea5dd9b0
bf32ab9ee47e214df30859212232699ffc7bb6e1
[rfc] GL api wrapper
This should allow to cleanly use the evas_glapi on Tizen. We may also consider to directly use the platform GL headers again. At least for me compile times are not an issue anymore :)
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3aa42e2a1c..c8e08008e2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,7 @@ project(tangram) # Options option(USE_SYSTEM_FONT_LIBS "Use system libraries Freetype, ICU and Harfbuzz via pkgconfig" OFF) +option(USE_SYSTEM_GLFW_LIBS "Use system libraries fo...
4
2
1
[{"id": "G0", "claim": "The reviewer questions wrapping the GL API in a `struct` rather than a `namespace`, since the only thing `struct` brings is future-proofing for member variables.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks why...
null
tangrams__tangram-es__965
tangrams/tangram-es
965
defect
c8cb8fb1870a1d1d94a1c1d60455b21886c69e5b
9d3fe42b8ecaa4922860d98b1a7bb4e8c8a417d3
Fix global property updates
since global properties are substituded when parsing the yaml scene for the first time, there was no information of where the global properties were applied when any of these globals were updated. This fixes the issue, by keeping track of the path of the node(s) which were using the global properties to begin with so ...
diff --git a/core/src/scene/scene.cpp b/core/src/scene/scene.cpp index 8495b35118..4f5a817d9b 100644 --- a/core/src/scene/scene.cpp +++ b/core/src/scene/scene.cpp @@ -70,6 +70,21 @@ Scene::Scene(const Scene& _other) Scene::~Scene() {} +bool Scene::removeGlobalUpdate(const std::string& key) { + bool found = fals...
8
7
2
[{"id": "G0", "claim": "The pull request contains a bug found when testing with the bubble-wrap scene, and the review should wait until it is addressed.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "When a scene update explicitly changes a node that p...
null